gpt4 book ai didi

java.awt.image.WritableRenderedImage.getNumXTiles()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 01:09:05 27 4
gpt4 key购买 nike

本文整理了Java中java.awt.image.WritableRenderedImage.getNumXTiles()方法的一些代码示例,展示了WritableRenderedImage.getNumXTiles()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WritableRenderedImage.getNumXTiles()方法的具体详情如下:
包路径:java.awt.image.WritableRenderedImage
类名称:WritableRenderedImage
方法名:getNumXTiles

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);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com