Examples of ColorSpace


Examples of org.apache.fop.datatypes.ColorSpace

        TempImage(int width, int height, byte[] result,
                  byte[] mask) throws FopImageException {
            this.m_height = height;
            this.m_width = width;
            this.m_bitsPerPixel = 8;
            this.m_colorSpace = new ColorSpace(ColorSpace.DEVICE_RGB);
            // this.m_isTransparent = false;
            // this.m_bitmapsSize = this.m_width * this.m_height * 3;
            this.m_bitmaps = result;
            this.m_mask = mask;
        }
View Full Code Here

Examples of org.apache.fop.datatypes.ColorSpace

            p = p + "/Name /Im" + Xnum + "\n";
            p = p + "/Length " + imgStream.getDataLength();
            p = p + "/Width " + fopimage.getWidth() + "\n";
            p = p + "/Height " + fopimage.getHeight() + "\n";
            p = p + "/BitsPerComponent " + fopimage.getBitsPerPixel() + "\n";
            ColorSpace cs = fopimage.getColorSpace();
            p = p + "/ColorSpace /" + cs.getColorSpacePDFString() + "\n";
            if (fopimage.isTransparent()) {
                PDFColor transp = fopimage.getTransparentColor();
                p = p + "/Mask [" + transp.red255() + " " + transp.red255()
                    + " " + transp.green255() + " " + transp.green255() + " "
                    + transp.blue255() + " " + transp.blue255() + "]\n";
View Full Code Here

Examples of org.apache.fop.datatypes.ColorSpace

        int imagestart = headermap[10] + headermap[11] * 256
                         + headermap[12] * 256 * 256
                         + headermap[13] * 256 * 256 * 256;
        this.m_bitsPerPixel = headermap[28];
        this.m_colorSpace = new ColorSpace(ColorSpace.DEVICE_RGB);
        int bytes;
        if (this.m_bitsPerPixel == 1)
            bytes = (this.m_width + 7) / 8;
        else if (this.m_bitsPerPixel == 24)
            bytes = this.m_width * 3;
 
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.