io.setImageEncoding((byte)0x83);
io.setImageData(fopimage.getRessourceBytes());
*/
} else if (MimeConstants.MIME_TIFF.equals(mime)
&& fopimage instanceof TIFFImage) {
TIFFImage tiffImage = (TIFFImage) fopimage;
int x = mpts2units(pos.getX() + currentIPPosition);
int y = mpts2units(pos.getY() + currentBPPosition);
int w = mpts2units(pos.getWidth());
int h = mpts2units(pos.getHeight());
ImageObject io = _afpDataStream.getImageObject(x, y, w, h);
io.setImageParameters(
(int)(fopimage.getHorizontalResolution() * 10),
(int)(fopimage.getVerticalResolution() * 10),
fopimage.getWidth(),
fopimage.getHeight()
);
if (tiffImage.getStripCount() == 1) {
int comp = tiffImage.getCompression();
if (comp == 3) {
if (!fopimage.load(FopImage.ORIGINAL_DATA)) {
return;
}
io.setImageEncoding((byte)0x81);