作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中java.awt.image.WritableRenderedImage.getNumXTiles()
方法的一些代码示例,展示了WritableRenderedImage.getNumXTiles()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WritableRenderedImage.getNumXTiles()
方法的具体详情如下:
包路径:java.awt.image.WritableRenderedImage
类名称:WritableRenderedImage
方法名:getNumXTiles
暂无
代码示例来源: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中java.awt.image.WritableRenderedImage.getNumXTiles()方法的一些代码示例,展示了WritableRenderedImage.getN
我是一名优秀的程序员,十分优秀!