本文整理了Java中java.awt.image.WritableRenderedImage.getNumYTiles()
方法的一些代码示例,展示了WritableRenderedImage.getNumYTiles()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WritableRenderedImage.getNumYTiles()
方法的具体详情如下:
包路径:java.awt.image.WritableRenderedImage
类名称:WritableRenderedImage
方法名:getNumYTiles
暂无
代码示例来源: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: 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
/**
* 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: Geomatys/geotoolkit
|| rimty != wrimty
|| renderedImage.getNumXTiles() != writableRI.getNumXTiles()
|| renderedImage.getNumYTiles() != writableRI.getNumYTiles()
|| renderedImage.getTileGridXOffset() != writableRI.getTileGridXOffset()
|| renderedImage.getTileGridYOffset() != writableRI.getTileGridYOffset()
代码示例来源:origin: Geomatys/geotoolkit
|| 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);
内容来源于网络,如有侵权,请联系作者删除!