Examples of PSDictionary


Examples of org.apache.xmlgraphics.ps.PSDictionary

        ccitt.writeTo(out);
    }

    /** {@inheritDoc} */
    public String getImplicitFilter() {
        PSDictionary dict = new PSDictionary();
        dict.put("/Columns", new Integer(ccitt.getSize().getWidthPx()));
        int compression = ccitt.getCompression();
        switch (compression) {
        case TIFFImage.COMP_FAX_G3_1D :
            dict.put("/K", new Integer(0));
            break;
        case TIFFImage.COMP_FAX_G3_2D :
            dict.put("/K", new Integer(1));
            break;
        case TIFFImage.COMP_FAX_G4_2D :
            dict.put("/K", new Integer(-1));
            break;
        default:
            throw new IllegalStateException(
                    "Invalid compression scheme: " + compression);
        }

        return dict.toString() + " /CCITTFaxDecode";
    }
View Full Code Here

Examples of org.apache.xmlgraphics.ps.PSDictionary

        ccitt.writeTo(out);
    }

    /** {@inheritDoc} */
    public String getImplicitFilter() {
        PSDictionary dict = new PSDictionary();
        dict.put("/Columns", new Integer(ccitt.getSize().getWidthPx()));
        int compression = ccitt.getCompression();
        switch (compression) {
        case TIFFImage.COMP_FAX_G3_1D :
            dict.put("/K", new Integer(0));
            break;
        case TIFFImage.COMP_FAX_G3_2D :
            dict.put("/K", new Integer(1));
            break;
        case TIFFImage.COMP_FAX_G4_2D :
            dict.put("/K", new Integer(-1));
            break;
        default:
            throw new IllegalStateException(
                    "Invalid compression scheme: " + compression);
        }

        return dict.toString() + " /CCITTFaxDecode";
    }
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.