Package java.awt.image

Examples of java.awt.image.VolatileImage


     * @since 1.5
     */
    public VolatileImage createCompatibleVolatileImage(int width, int height,
        ImageCapabilities caps, int transparency) throws AWTException
    {
        VolatileImage vi =
            new Container().createVolatileImage(width, height, caps);
        if (caps != null && caps.isAccelerated() &&
            !vi.getCapabilities().isAccelerated())
        {
            throw new AWTException("Supplied image capabilities could not " +
                                   "be met by this graphics configuration.");
        }
        return vi;
View Full Code Here


    GraphicsEnvironment e = GraphicsEnvironment
        .getLocalGraphicsEnvironment();
    GraphicsDevice d = e.getDefaultScreenDevice();
    GraphicsConfiguration c = d.getDefaultConfiguration();
    VolatileImage compatibleImage = c.createCompatibleVolatileImage(width,
        height, Transparency.TRANSLUCENT);
    return compatibleImage;
  }
View Full Code Here

TOP

Related Classes of java.awt.image.VolatileImage

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.