Image-Leptonica
view release on metacpan or search on metacpan
lib/Image/Leptonica/Func/psio2.pm view on Meta::CPAN
which are defined to be 1/72 inch. The printer will
only see the size of the image in pts, through the
scale and translate parameters and the affine
transform (the ImageMatrix) of the image.
(6) To render multiple images on the same page, set
endpage = FALSE for each image until you get to the
last, for which you set endpage = TRUE. This causes the
"showpage" command to be invoked. Showpage outputs
the entire page and clears the raster buffer for the
next page to be added. Without a "showpage",
subsequent images from the next page will overlay those
previously put down.
(7) For multiple pages, increment the page number, starting
with page 1. This allows PostScript (and PDF) to build
a page directory, which viewers use for navigation.
=head2 convertFlateToPSEmbed
l_int32 convertFlateToPSEmbed ( const char *filein, const char *fileout )
convertFlateToPSEmbed()
lib/Image/Leptonica/Func/psio2.pm view on Meta::CPAN
print binary PS files.
(3) For the first image written to a file, use "w", which
opens for write and clears the file. For all subsequent
images written to that file, use "a".
(4) To render multiple images on the same page, set
endpage = FALSE for each image until you get to the
last, for which you set endpage = TRUE. This causes the
"showpage" command to be invoked. Showpage outputs
the entire page and clears the raster buffer for the
next page to be added. Without a "showpage",
subsequent images from the next page will overlay those
previously put down.
(5) For multiple images to the same page, where you are writing
both jpeg and tiff-g4, you have two options:
(a) write the g4 first, as either image (maskflag == FALSE)
or imagemask (maskflag == TRUE), and then write the
jpeg over it.
(b) write the jpeg first and as the last item, write
the g4 as an imagemask (maskflag == TRUE), to paint
through the foreground only.
We have this flexibility with the tiff-g4 because it is 1 bpp.
lib/Image/Leptonica/Func/psio2.pm view on Meta::CPAN
which are defined to be 1/72 inch. The printer will
only see the size of the image in pts, through the
scale and translate parameters and the affine
transform (the ImageMatrix) of the image.
(6) To render multiple images on the same page, set
endpage = FALSE for each image until you get to the
last, for which you set endpage = TRUE. This causes the
"showpage" command to be invoked. Showpage outputs
the entire page and clears the raster buffer for the
next page to be added. Without a "showpage",
subsequent images from the next page will overlay those
previously put down.
(7) For multiple pages, increment the page number, starting
with page 1. This allows PostScript (and PDF) to build
a page directory, which viewers use for navigation.
=head2 convertJpegToPSEmbed
l_int32 convertJpegToPSEmbed ( const char *filein, const char *fileout )
convertJpegToPSEmbed()
( run in 0.270 second using v1.01-cache-2.11-cpan-49f99fa48dc )