Tabnine Logo
WritableRenderedImage.getNumXTiles
Code IndexAdd Tabnine to your IDE (free)

How to use
getNumXTiles
method
in
java.awt.image.WritableRenderedImage

Best Java code snippets using java.awt.image.WritableRenderedImage.getNumXTiles (Showing top 6 results out of 315)

origin: geotools/geotools

/**
 * Sets every samples in the given image to the given value. This method is typically used for
 * clearing an image content.
 *
 * @param image The image to fill.
 * @param value The value to to given to every samples.
 */
public static void fill(final WritableRenderedImage image, final Number value) {
  int y = image.getMinTileY();
  for (int ny = image.getNumYTiles(); --ny >= 0; ) {
    int x = image.getMinTileX();
    for (int nx = image.getNumXTiles(); --nx >= 0; ) {
      final WritableRaster raster = image.getWritableTile(x, y);
      try {
        fill(raster.getDataBuffer(), value);
      } finally {
        image.releaseWritableTile(x, y);
      }
    }
  }
}
origin: Geomatys/geotoolkit

/**
 * Sets every samples in the given image to the given value. This method is typically used
 * for clearing an image content.
 *
 * @param image The image to fill.
 * @param value The value to be given to every samples.
 */
public static void fill(final WritableRenderedImage image, final Number value) {
  int y = image.getMinTileY();
  for (int ny = image.getNumYTiles(); --ny >= 0; y++) {
    int x = image.getMinTileX();
    for (int nx = image.getNumXTiles(); --nx >= 0; x++) {
      final WritableRaster raster = image.getWritableTile(x, y);
      try {
        fill(raster.getDataBuffer(), value);
      } finally {
        image.releaseWritableTile(x, y);
      }
    }
  }
}
origin: org.geotools/gt-coverage

/**
 * Sets every samples in the given image to the given value. This method is typically used
 * for clearing an image content.
 *
 * @param image The image to fill.
 * @param value The value to to given to every samples.
 */
public static void fill(final WritableRenderedImage image, final Number value) {
  int y = image.getMinTileY();
  for (int ny = image.getNumYTiles(); --ny >= 0;) {
    int x = image.getMinTileX();
    for (int nx = image.getNumXTiles(); --nx >= 0;) {
      final WritableRaster raster = image.getWritableTile(x, y);
      try {
        fill(raster.getDataBuffer(), value);
      } finally {
        image.releaseWritableTile(x, y);
      }
    }
  }
}
origin: Geomatys/geotoolkit

|| renderedImage.getNumXTiles() != writableRI.getNumXTiles()
|| renderedImage.getNumYTiles() != writableRI.getNumYTiles()
|| renderedImage.getTileGridXOffset() != writableRI.getTileGridXOffset()
origin: Geomatys/geotoolkit

final int tileHeight = image.getTileHeight();
final int minTileY   = image.getMinTileY();
final int maxTileY   = image.getNumXTiles() + minTileY - 1; // inclusive.
while (!stack.isEmpty()) {
  final int y = stack.removeLast() + ymin;
origin: Geomatys/geotoolkit

|| renderedImage.getHeight() != writableRI.getHeight()
|| rimtx != wrimtx || rimty != wrimty
|| renderedImage.getNumXTiles() != writableRI.getNumXTiles()
|| renderedImage.getNumYTiles() != writableRI.getNumYTiles())
throw new IllegalArgumentException("rendered image and writable rendered image dimensions are not conform"+renderedImage+writableRI);
java.awt.imageWritableRenderedImagegetNumXTiles

Popular methods of WritableRenderedImage

  • getWritableTile
  • getHeight
  • getMinX
  • getMinY
  • getWidth
  • releaseWritableTile
  • getMinTileX
  • getMinTileY
  • addTileObserver
  • getNumYTiles
  • getSampleModel
  • getTile
  • getSampleModel,
  • getTile,
  • getTileHeight,
  • getTileWidth,
  • removeTileObserver,
  • getTileGridXOffset,
  • getTileGridYOffset

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • String (java.lang)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • JCheckBox (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now