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

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

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

Raster.getParent介绍

暂无

代码示例

代码示例来源:origin: org.geoserver/gs-wms

private Raster getRaster(BufferedImage image) {
  // in case the raster has a parent, this is likely a subimage, we have to force
  // a copy of the raster to get a data buffer we can scroll over without issues
  Raster raster = image.getRaster();
  if (raster.getParent() != null) {
    throw new IllegalArgumentException(
        "The provided raster is a child of another image");
  } else {
    return raster;
  }
}

代码示例来源:origin: com.nativelibs4java/javacl-core

public static boolean isSubRaster(Raster raster) {
    Rectangle bounds = raster.getBounds();
    return raster.getParent() != null || bounds.x != 0 || bounds.y != 0;
}
public static ImageInfo<BufferedImage> getIntARGBImageInfo() {

代码示例来源:origin: nativelibs4java/JavaCL

public static boolean isSubRaster(Raster raster) {
    Rectangle bounds = raster.getBounds();
    return raster.getParent() != null || bounds.x != 0 || bounds.y != 0;
}
public static ImageInfo<BufferedImage> getIntARGBImageInfo() {

代码示例来源:origin: ru.sbtqa/monte-media

Raster raster = image.getRaster();
int dx = 0, dy = 0;
while (raster.getParent() != null) {
  dx += raster.getMinX();
  dy += raster.getMinY();
  raster = raster.getParent();

代码示例来源:origin: it.geosolutions.imageio-ext/imageio-ext-png

if (raster.getParent() != null) {
  raster = image.getData(new Rectangle(0, 0, raster.getWidth(), raster.getHeight()));

代码示例来源:origin: net.java.dev.jna/jna-platform

if (raster.getParent() == null && bounds.x == 0 && bounds.y == 0) {

代码示例来源:origin: net.java.dev.jna/platform

if (raster.getParent() == null && bounds.x == 0 && bounds.y == 0) {

代码示例来源:origin: net.java.dev.jai-imageio/jai-imageio-core-standalone

double[] ddata = null;
if (raster.getParent() != null &&
  !sampleModel.equals(raster.getParent().getSampleModel())) {
  WritableRaster ras =
    Raster.createWritableRaster(sampleModel,

代码示例来源:origin: org.openmicroscopy/ome-jai

double[] ddata = null;
if (raster.getParent() != null &&
  !sampleModel.equals(raster.getParent().getSampleModel())) {
  WritableRaster ras =
    Raster.createWritableRaster(sampleModel,

代码示例来源:origin: io.scif/scifio-jai-imageio

double[] ddata = null;
if (raster.getParent() != null &&
  !sampleModel.equals(raster.getParent().getSampleModel())) {
  WritableRaster ras =
    Raster.createWritableRaster(sampleModel,

相关文章