Package sun.awt.image

Examples of sun.awt.image.ImageRepresentation


        } else {
            ToolkitImage sunimg = (ToolkitImage)img;
            if (!imageReady(sunimg, observer)) {
                return false;
            }
            ImageRepresentation ir = sunimg.getImageRep();
            return ir.drawToBufImage(sg, sunimg, dx1, dy1, dx2, dy2,
                                     sx1, sy1, sx2, sy2, bgColor, observer);
        }
    }
View Full Code Here


        int width;
        int height;
        GraphicsConfiguration defaultGC;
        if (im != null) {  // 4633887  Avoid Null pointer exception.
        if (im instanceof X11Image) {
            ImageRepresentation ir = ((X11Image)im).getImageRep();
            ir.reconstruct(ImageObserver.ALLBITS);
            width = ir.getWidth();
            height = ir.getHeight();
        }
        else {
            width = im.getWidth(null);
            height = im.getHeight(null);
        }
View Full Code Here

            BufferedImage bimage =
                new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
            Graphics g = bimage.getGraphics();
            try {
                if (im instanceof WImage) {
                    ImageRepresentation ir = ((WImage)im).getImageRep();
                    ir.reconstruct(ImageObserver.ALLBITS);
                }
                g.drawImage(im, 0, 0, w, h, null);
            } finally {
                g.dispose();
            }
View Full Code Here

                o.imageUpdate(img, ImageObserver.ERROR|ImageObserver.ABORT,
                              -1, -1, -1, -1);
            }
            return false;
        }
        ImageRepresentation ir = ximg.getImageRep();
        return ir.prepare(o);
    }
View Full Code Here

            renderedImage = (RenderedImage)image;
        } else {
            int width = 0;
            int height = 0;
            if (image instanceof sun.awt.image.Image) {
                ImageRepresentation ir = ((sun.awt.image.Image)image).getImageRep();
                ir.reconstruct(ImageObserver.ALLBITS);
                width = ir.getWidth();
                height = ir.getHeight();
            } else {
                width = image.getWidth(null);
                height = image.getHeight(null);
            }
View Full Code Here

        } else {
            sun.awt.image.Image sunimg = (sun.awt.image.Image)img;
            if (!imageReady(sunimg, observer)) {
                return false;
            }
            ImageRepresentation ir = sunimg.getImageRep();
            return ir.drawToBufImage(sg, sunimg, x, y, bgColor, observer);
        }
    }
View Full Code Here

        } else {
            sun.awt.image.Image sunimg = (sun.awt.image.Image)img;
            if (!imageReady(sunimg, observer)) {
                return false;
            }
            ImageRepresentation ir = sunimg.getImageRep();
            return ir.drawToBufImage(sg, sunimg, dx, dy, (dx + w), (dy + h),
                                     sx, sy, (sx + w), (sy + h), bgColor, observer);
        }
    }
View Full Code Here

        } else {
            sun.awt.image.Image sunimg = (sun.awt.image.Image)img;
            if (!imageReady(sunimg, observer)) {
                return false;
            }
            ImageRepresentation ir = sunimg.getImageRep();
            return ir.drawToBufImage(sg, sunimg, x, y, width, height, bgColor,
                                     observer);
        }
    }
View Full Code Here

        } else {
            sun.awt.image.Image sunimg = (sun.awt.image.Image)img;
            if (!imageReady(sunimg, observer)) {
                return false;
            }
            ImageRepresentation ir = sunimg.getImageRep();
            return ir.drawToBufImage(sg, sunimg, dx1, dy1, dx2, dy2,
                                     sx1, sy1, sx2, sy2, bgColor, observer);
        }
    }
View Full Code Here

        } else {
            sun.awt.image.Image sunimg = (sun.awt.image.Image)img;
            if (!imageReady(sunimg, observer)) {
                return false;
            }
            ImageRepresentation ir = sunimg.getImageRep();
            return ir.drawToBufImage(sg, sunimg, atfm, observer);
        }
    }
View Full Code Here

TOP

Related Classes of sun.awt.image.ImageRepresentation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.