SetTrimBasedOnGrayscaleEnabled

 

Enables trimming based on grayscale values. If trimming based on grayscale values is turned on, the printer driver will cut the margins at the first instance of the chosen grayscale value. If trimming based on grayscale values is turned off, the printer driver will cut based on the EMF data coming from GDI.

Use the SetTrimGrayscaleIntensity to set the grayscale level to cut at.

Use the SetTrimWhitespace function to turn trimming on or off for each page margin.

 

SetTrimBasedOnGrayscaleEnabled(pDevMode As Long, bEnabled As Boolean) As Boolean

 

Input value pDevMode

- handle to the BlackIceDEVMODE structure

Input value bEnabled

- Set to TRUE, to turn on trimming based on grayscale values, set to FALSE, to trim based on EMF data.

Return value

- TRUE on success otherwise FALSE.

 

NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.