SetTrimGrayscaleIntensity

 

Sets the grayscale intensity level where the page is cut, when trimming based on grayscale intensity. The driver cuts the margins at the first pixel that is the same darkness or darker than the chosen grayscale intensity level.

 

SetTrimGrayscaleIntensity(pDevMode As Long, dwIntensity As Long) As Boolean

 

 

Input value pDevMode

- Handle to the BlackIceDEVMODE structure

Input value dwIntensity

- Grayscale intensity level between 1 and 100. 1 is the lightest gray (but not white), 100 is black.

Return value

- TRUE on success otherwise FALSE.

 

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