IsTrimBasedOnGrayscaleEnabled

 

Returns TRUE if trimming based on grayscale values is turned on. If trimming based on grayscale values is turned on, the printer driver will cut the margins at the first pixel that is the same darkness or darker than the chosen grayscale value. If trimming based on grayscale values is turned off, the printer driver will cut the margins 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.

 

IsTrimBasedOnGrayscaleEnabled(pDevMode) As Boolean

 

Input value pDevMode

- handle to the BlackIceDEVMODE structure

Return value

- TRUE if trimming based on grayscale values is turned on, FALSE if the driver is trimming based on EMF data.

 

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