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