Package sun.java2d.loops

Examples of sun.java2d.loops.ScaledBlit


            (srcData.getTransparency() == Transparency.OPAQUE))
        {
            comp = CompositeType.SrcNoEa;
        }

        ScaledBlit blit = ScaledBlit.getFromCache(srcType, comp, dstType);
        if (blit != null) {
            blit.Scale(srcData, dstData, sg.composite, clipRegion,
                       sx1, sy1, sx2, sy2, dx1, dy1, dx2, dy2);
            return true;
        }
        return false;
    }
View Full Code Here


            dw = (int)(coords[2] + 0.5);
            dh = (int)(coords[3] + 0.5);
            dw -= dx;
            dh -= dy;
        }
        ScaledBlit blit = ScaledBlit.getFromCache(srcType, comp, dstType);
        if (blit != null) {
            Region clipRegion = sg.getCompClip();
            if (sg.clipState == sg.CLIP_SHAPE) {
                int box[] = {dx, dy, dx+dw, dy+dh};
                SpanIterator si = clipRegion.getSpanIterator(box);
                while (si.nextSpan(box)) {
                    blit.Scale(srcData, dstData, sg.composite,
                               sx, sy, dx, dy, sw, sh, dw, dh,
                               box[0], box[1], box[2], box[3]);
                }
            } else {
                blit.Scale(srcData, dstData, sg.composite,
                           sx, sy, dx, dy, sw, sh, dw, dh,
                           clipRegion.getLoX(), clipRegion.getLoY(),
                           clipRegion.getHiX(), clipRegion.getHiY());
            }
            return true;
View Full Code Here

TOP

Related Classes of sun.java2d.loops.ScaledBlit

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.