convertPageToPicture2
Convert a page to a Picture object.
convertPageToPicture2([in] int page, [in] double dpi, [in] int color,
[out, retval] IUnknown **pic)
This function converts a PDF page to a Picture object
(OLE
IPicture
interface).
The arguments are:
page
= page numberdpi
= resolution (dots per inch)color
= color setting - one of:imageMono
: 1-bit monochromeimageGray
: 8-bit grayscaleimageRGB
: 8-bit RGBimageDevNToRGB
: 8-bit RGB, rasterized in DeviceN and then converted to RGBimageGrayToMono
: 1-bit monochrome, rasterized in 8-bit grayscale and then converted to 1-bit
viewer.imageMono
, etc.
VB:
' convert page 5 to a 72 dpi color Picture object
picBox.Picture = viewer.convertPageToPicture(5, 72, viewer.imageRGB)