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

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

Best Java code snippets using java.awt.image.WritableRenderedImage.getMinTileX (Showing top 9 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: apache/sis

} else if (input.getMinTileX()   != output.getMinTileX()  ||
      input.getMinTileY()   != output.getMinTileY()  ||
      input.getTileWidth()  != output.getTileWidth() ||
origin: Geomatys/geotoolkit

 throw new IllegalArgumentException("rendered image and writable rendered image dimensions are not conform.\n" +
     "First : "+renderedImage+"\nSecond : "+writableRI);
final int wrimtx = writableRI.getMinTileX();
final int wrimty = writableRI.getMinTileY();
final int rimtx  = writableRI.getMinTileX();
final int rimty  = writableRI.getMinTileY();
origin: Geomatys/geotoolkit

final int rimty  = renderedImage.getMinTileY();
final int wrimtx = writableRI.getMinTileX();
final int wrimty = writableRI.getMinTileY();
origin: Geomatys/geotoolkit

  if (fillValue.length != numBands)
    throw new IllegalArgumentException("fillValue table length and numbands are different : "+fillValue.length+" numbands = "+this.numBands);
assert(numBands == imageDest.getWritableTile(imageDest.getMinTileX(), imageDest.getMinTileY()).getNumBands())
    : "destination image numbands different from source image numbands";
this.destIterator              = PixelIteratorFactory.createDefaultWriteableIterator(this.imageDest, this.imageDest, resampleArea);
origin: Geomatys/geotoolkit

  if (fillValue.length != numBands)
    throw new IllegalArgumentException("fillValue table length and numbands are different : "+fillValue.length+" numbands = "+this.numBands);
assert(numBands == imageDest.getWritableTile(imageDest.getMinTileX(), imageDest.getMinTileY()).getNumBands())
    : "destination image numbands different from source image numbands";
this.destIterator              = PixelIteratorFactory.createDefaultWriteableIterator(this.imageDest, this.imageDest, resampleArea);
origin: Geomatys/geotoolkit

final int destMinRastXIndex = imageDest.getMinTileX() + (rectBound.x - imageDest.getMinX()) / tileWidth;
final int destMinRastYIndex = imageDest.getMinTileY() + (rectBound.y - imageDest.getMinY()) / tileHeight;
final int destMaxRastX      = imageDest.getMinTileX() + (rectBound.x + rectBound.width + tileWidth - 1) / tileWidth;
final int destMaxRastY      = imageDest.getMinTileY() + (rectBound.y + rectBound.height + tileHeight - 1) / tileHeight;
java.awt.imageWritableRenderedImagegetMinTileX

Popular methods of WritableRenderedImage

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • String (java.lang)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Notification (javax.management)
  • 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