Package sun.java2d

Examples of sun.java2d.SunGraphics2D.drawImage()


    public void paintThumb( Graphics g ) {
        final SunGraphics2D g2d = Utils.getGraphics2D(
            g, thumbRect.x, thumbRect.y, thumbRect.width, thumbRect.height
        );
        if ( g2d != null ) {
            g2d.drawImage(triangleThumb, null, thumbRect.x-1, thumbRect.y);
        }
    }

    ////////// protected //////////////////////////////////////////////////////
View Full Code Here


                    (GLXVSyncOffScreenSurfaceData)sd;
                SurfaceData bbsd = vsd.getFlipSurface();
                Graphics2D bbg =
                    new SunGraphics2D(bbsd, Color.black, Color.white, null);
                try {
                    bbg.drawImage(xBackBuffer, 0, 0, null);
                } finally {
                    bbg.dispose();
                }
            } else {
                Graphics g = peer.getGraphics();
View Full Code Here

                    (WGLVSyncOffScreenSurfaceData)sd;
                SurfaceData bbsd = vsd.getFlipSurface();
                Graphics2D bbg =
                    new SunGraphics2D(bbsd, Color.black, Color.white, null);
                try {
                    bbg.drawImage(backBuffer, 0, 0, null);
                } finally {
                    bbg.dispose();
                }
            } else {
                Graphics g = peer.getGraphics();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.