Example: RasterizeEx

 

IN_OBJECT lNewDocwinID;

 

/* Rasterize the displayed layers on the current page in the active document window to bilevel dithered, medium brightness, medium threshold, and 800 dpi in both directions. Rotate the image 270 degrees, and resize it to 6.4 by 12.8 inches. */

if ( ( nError = IN_RasterizeEx( 0, 0, IN_RASTERIZE_LAYERS, IN_RASTERIZE_OUTPUT_BILEVEL_DITHERED, 0, 100, 800, 800, IN_RASTERIZE_ORIENT_270, 6.4, 12.8, IN_UNITS_INCH, &lNewDocwinID ) ) != IN_SUCCESS )

 

{

  ErrorHandler( nError, "Error message:" );

 }