Package sun.java2d.loops

Examples of sun.java2d.loops.SurfaceType


        {
            SurfaceData sData =
                SurfaceData.getSurfaceDataFromImage(img, sg.surfaceData,
                                                    sg.imageComp, bgColor, true);
            if (!isBgOperation(sData, bgColor)) {
                SurfaceType src = sData.getSurfaceType();
                SurfaceType dst = sg.surfaceData.getSurfaceType();
                if (scaleSurfaceData(sg, sData, sg.surfaceData, src, dst,
                                     x, y, 0, 0,
                                     width, height,
                                     img.getWidth(null), img.getHeight(null),
                                     null))
View Full Code Here


                // Must be a simple scale - we can handle this
                SurfaceData sData =
                    SurfaceData.getSurfaceDataFromImage(img, sg.surfaceData,
                                                        sg.imageComp, bgColor, true);
                if (!isBgOperation(sData, bgColor)) {
                    SurfaceType src = sData.getSurfaceType();
                    SurfaceType dst = sg.surfaceData.getSurfaceType();
                    int dstX = x;
                    int dstY = y;
                    int dstW = img.getWidth(null);
                    int dstH = img.getHeight(null);
                    double coords[] = null;
View Full Code Here

        // Loop up to twice through; this gives us a chance to
        // revalidate the surfaceData objects in case of an exception
        // and try it once more
        while (true) {
            try {
                SurfaceType src = sData.getSurfaceType();
                SurfaceType dst = sg.surfaceData.getSurfaceType();
                blitSurfaceData(sg, sData, sg.surfaceData, src, dst,
                                sx, sy, dx, dy, w, h, bgColor);
                return;
            } catch (NullPointerException e) {
                if (!SurfaceData.isNull(sg.surfaceData) &&
View Full Code Here

            SurfaceData sData =
                SurfaceData.getSurfaceDataFromImage(img, sg.surfaceData,
                                                    sg.imageComp, bgColor, true);
            if (!isBgOperation(sData, bgColor)) {
                // only accelerate scale if there is no bg color involved
                SurfaceType src = sData.getSurfaceType();
                SurfaceType dst = sg.surfaceData.getSurfaceType();
                if (scaleSurfaceData(sg, sData, sg.surfaceData, src, dst,
                                     dstX, dstY, srcX, srcY,
                                     dstW, dstH,
                                     srcW, srcH, null))
                {
View Full Code Here

    public static SurfaceType getSurfaceType(X11GraphicsConfig gc,
                                             int transparency)
    {
        boolean transparent = (transparency == Transparency.BITMASK);
        SurfaceType sType;
        ColorModel cm = gc.getColorModel();
        switch (cm.getPixelSize()) {
        case 24:
            if (gc.getBitsPerPixel() == 24) {
                if (cm instanceof DirectColorModel) {
View Full Code Here

TOP

Related Classes of sun.java2d.loops.SurfaceType

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.