#include “BlackIceDEVMODE.h”
BOOL IsTrimBasedOnGrayscaleEnabled(BlackIceDEVMODE* pDevMode);
Description
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.
Parameters
BlackIceDEVMODE* pDevMode - pointer 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.
Programming Notes
None
Code Example
None