IPictureinterface). It is identical to
convertRegionToPicture, except that it allows the horizontal and vertical resolutions to be controlled independently.
The rectangular region is specified by the x,y coordinates of its upper-left corner and its width and height - in bitmap coordinates, not PDF coordinates. That is, if the whole-page bitmap would have been 1000 pixels wide and 2000 pixels high, and you request a region with (x,y) = (0,0) and (w,h) = (1000,500), the resulting bitmap will be the top fourth of the page.
The arguments are:
page= page number
regionY= upper-left corner of region
regionH= width and height of region
dpi= resolution (dots per inch)
color= color setting - one of:
imageGrayToMono mode does the rasterization in 8-bit grayscale
and converts to 1-bit monochrome at the end. This is useful for files
that use transparency – because 1-bit monochrome mode doesn't