Examples of XORComposite


Examples of org.apache.harmony.awt.gl.XORComposite

                    width, height,
                    sa << 6, ea << 6
            );

            if (xor_mode) {
                XORComposite xor = (XORComposite)composite;
                Color xorcolor = xor.getXORColor();
                xSetForeground(xorcolor.getRGB());
                fillArc(
                        display,
                        drawable,
                        gc,
View Full Code Here

Examples of org.apache.harmony.awt.gl.XORComposite

      alpha = ac.getAlpha();
    }
    else if (comp instanceof XORComposite)
    {
      isXORComp = true;
      XORComposite xcomp = (XORComposite) comp;
      xorcolor = xcomp.getXORColor();
    }
    else
    {
      cont = comp.createContext(srcCM, dstCM, null);
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.XORComposite

      srcConstAlpha = (int) (ac.getAlpha() * 255 + 0.5f);
    }
    else if (comp instanceof XORComposite)
    {
      compType = XORMode;
      XORComposite xor = (XORComposite) comp;
      bgRGB = xor.getXORColor().getRGB();
    }

    for (int i = 1; i < clipRects[0]; i += 4)
    {
      Rectangle dstBounds = new Rectangle(clipRects[i], clipRects[i + 1],
View Full Code Here

Examples of org.apache.harmony.awt.gl.XORComposite

                            clipRects, srcSurf.invalidated());
                    dstSurf.invalidate();
                    srcSurf.validate();
                }
            }else if(comp instanceof XORComposite){
                XORComposite xcomp = (XORComposite) comp;
                xor(srcX, srcY, srcSurfStruct, srcData,
                        dstX, dstY, dstSurfStruct, dstData,
                        width, height, xcomp.getXORColor().getRGB(),
                        clipRects, srcSurf.invalidated());
                dstSurf.invalidate();
                srcSurf.validate();
            }else{
                if(srcSurf instanceof ImageSurface){
View Full Code Here

Examples of org.apache.harmony.awt.gl.XORComposite

            AlphaComposite ac = (AlphaComposite) comp;
            rule = ac.getRule();
            alpha = ac.getAlpha();
        }else if(comp instanceof XORComposite){
            isXORComp = true;
            XORComposite xcomp = (XORComposite) comp;
            xorcolor = xcomp.getXORColor();
        }else{
            cont = comp.createContext(srcCM, dstCM, null);
        }

        for(int i = 1; i < clipRects[0]; i += 4){
View Full Code Here

Examples of org.apache.harmony.awt.gl.XORComposite

            AlphaComposite ac = (AlphaComposite) comp;
            rule = ac.getRule();
            srcConstAlpha = (int)(ac.getAlpha() * 255 + 0.5f);
        }else if(comp instanceof XORComposite){
            compType = XORMode;
            XORComposite xor = (XORComposite) comp;
            bgRGB = xor.getXORColor().getRGB();
        }

        for(int i = 1; i < clipRects[0]; i += 4){
            Rectangle dstBounds = new Rectangle(clipRects[i], clipRects[i + 1], 0, 0);
            dstBounds.add(clipRects[i + 2] + 1, clipRects[i + 1]);
View Full Code Here

Examples of org.apache.harmony.awt.gl.XORComposite

                            dstX, dstY, dstSurfStruct,
                            width, height, compType, alpha,
                            matrix, clipRects, numVertex);
                }
            }else if(comp instanceof XORComposite){
                XORComposite xcomp = (XORComposite) comp;
                if(srcSurf instanceof ImageSurface){
                    Object data = srcSurf.getData();

                    int dirtyRegions[] = ((ImageSurface) srcSurf).getDirtyRegions();
                    int regCount = 0;
                    if(dirtyRegions != null) regCount = dirtyRegions[0] - 1;

                    synchronized(data){
                        xorImage(srcX, srcY, srcSurfStruct, data,
                                dstX, dstY, dstSurfStruct,
                                width, height, xcomp.getXORColor().getRGB(),
                                matrix, clipRects, numVertex,
                                srcSurf.invalidated(), dirtyRegions, regCount);
                    }
                    srcSurf.validate();
                }else{
                    xorBitmap(srcX, srcY, srcSurfStruct,
                            dstX, dstY, dstSurfStruct,
                            width, height, xcomp.getXORColor().getRGB(),
                            matrix, clipRects, numVertex);
                }
            }else{
                // awt.17=Unknown Composite type : {0}
                throw new IllegalArgumentException(Messages.getString("awt.17"//$NON-NLS-1$
View Full Code Here

Examples of org.apache.harmony.awt.gl.XORComposite

            AlphaComposite ac = (AlphaComposite) comp;
            rule = ac.getRule();
            alpha = ac.getAlpha();
        }else if(comp instanceof XORComposite){
            isXORComp = true;
            XORComposite xcomp = (XORComposite) comp;
            xorcolor = xcomp.getXORColor();
        }else{
            cont = comp.createContext(srcCM, dstCM, null);
        }

        for(int i = 1; i < clipRects[0]; i += 4){
View Full Code Here

Examples of org.apache.harmony.awt.gl.XORComposite

            AlphaComposite ac = (AlphaComposite) comp;
            rule = ac.getRule();
            srcConstAlpha = (int)(ac.getAlpha() * 255 + 0.5f);
        }else if(comp instanceof XORComposite){
            compType = XORMode;
            XORComposite xor = (XORComposite) comp;
            bgRGB = xor.getXORColor().getRGB();
        }

        for(int i = 1; i < clipRects[0]; i += 4){
            Rectangle dstBounds = new Rectangle(clipRects[i], clipRects[i + 1], 0, 0);
            dstBounds.add(clipRects[i + 2] + 1, clipRects[i + 1]);
View Full Code Here

Examples of org.apache.harmony.awt.gl.XORComposite

                            width, height, compType, alpha,
                            clipRects, srcSurf.invalidated());
                    dstSurf.addDirtyRegion(new Rectangle(dstX, dstY, width, height));
                }
            }else if(comp instanceof XORComposite){
                XORComposite xcomp = (XORComposite) comp;
                xor(srcX, srcY, srcSurfStruct, srcData,
                        dstX, dstY, dstSurfStruct, dstData,
                        width, height, xcomp.getXORColor().getRGB(),
                        clipRects, srcSurf.invalidated());
                dstSurf.addDirtyRegion(new Rectangle(dstX, dstY, width, height));
            }else{
                if(srcSurf instanceof ImageSurface){
                    JavaBlitter.inst.blit(srcX, srcY, srcSurf, dstX, dstY,
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.