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

x33g5p2x  于2022-01-28 转载在 其他  
字(8.0k)|赞(0)|评价(0)|浏览(112)

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

Raster.getSampleModelTranslateX介绍

暂无

代码示例

代码示例来源:origin: haraldk/TwelveMonkeys

final int offsetX = tile.getMinX() - tile.getSampleModelTranslateX();
final int offsetY = tile.getMinY() - tile.getSampleModelTranslateY();

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public float getSampleFloat(int x, int y, int b) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public double getSampleDouble(int x, int y, int b) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleDouble(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public int getSample(int x, int y, int b) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSample(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public float getSampleFloat(int x, int y, int b) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: geosolutions-it/jai-ext

public int[] getPixel(int x, int y, int[] iArray) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, iArray,
      tile.getDataBuffer());
}

代码示例来源:origin: geosolutions-it/jai-ext

public float getSampleFloat(int x, int y, int b) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: geosolutions-it/jai-ext

public float getSampleFloat(int x, int y, int b) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public float getSampleFloat(int x, int y, int b) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public float getSampleFloat(int x, int y, int b) {
  // get tile
  final Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public double[] getPixel(int x, int y, double[] dArray) {
  // get tile
  final Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, dArray,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public float getSampleFloat(int x, int y, int b) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public double[] getPixel(int x, int y, double[] dArray) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, dArray,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public int[] getPixel(int x, int y, int[] iArray) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, iArray,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public float[] getPixel(int x, int y, float[] fArray) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, fArray,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public double getSampleDouble(int x, int y, int b) {
  // get tile
  final Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleDouble(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public float[] getPixel(int x, int y, float[] fArray) {
  // get tile
  final Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, fArray,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public double getSampleDouble(int x, int y, int b) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getSampleDouble(x - sampleModelTranslateX, y - sampleModelTranslateY, b,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public int[] getPixel(int x, int y, int[] iArray) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, iArray,
      tile.getDataBuffer());
}

代码示例来源:origin: it.geosolutions.jaiext.iterators/jt-iterators

public double[] getPixel(int x, int y, double[] dArray) {
  // get tile
  Raster tile = makeCurrent(x - boundsX, y - boundsY);
  // get value
  final int sampleModelTranslateX = tile.getSampleModelTranslateX();
  final int sampleModelTranslateY = tile.getSampleModelTranslateY();
  return sampleModel.getPixel(x - sampleModelTranslateX, y - sampleModelTranslateY, dArray,
      tile.getDataBuffer());
}

相关文章