Examples of canEmbedJpeg()


Examples of org.apache.fop.afp.AFPPaintingState.canEmbedJpeg()

        setConfigFile(uri);
        sut.configure(docHandler);

        AFPPaintingState paintingState = docHandler.getPaintingState();
        assertEquals(bitmapEncodingQual, paintingState.getBitmapEncodingQuality(), 0.01f);
        assertEquals(canEmbed, paintingState.canEmbedJpeg());
    }
}
View Full Code Here

Examples of org.apache.fop.afp.AFPPaintingState.canEmbedJpeg()

        if (!(targetContext instanceof AFPRenderingContext)) {
            return false; //AFP-specific image handler
        }
        AFPRenderingContext context = (AFPRenderingContext)targetContext;
        AFPPaintingState paintingState = context.getPaintingState();
        if (!paintingState.canEmbedJpeg()) {
            return false;
        }
        if (paintingState.getBitsPerPixel() < 8) {
            return false; //This would stand in the way of dithering and cause exceptions
        }
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.