SetTrimBasedOnGrayscaleEnabled

#include “BlackIceDEVMODE.h”

 

BOOL SetTrimBasedOnGrayscaleEnabled(BlackIceDEVMODE* pDevMode, BOOL bEnabled);

 

Description

 

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.

 

Parameters

 

BlackIceDEVMODE* pDevMode  

- pointer to the BlackIceDEVMODE structure

BOOL 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.

 

Programming Notes

 

None

 

Code Example

 

None