SetCropMode

#include “BlackIceDEVMODE.h”

 

BOOL SetCropMode(BlackIceDEVMODE* pDevMode, DWORD dwMode);

 

Description

 

Sets how the cropping area is specified when page cropping is enabled. It is possible to set the width of each margin that the driver will crop off, or set a rectangle relative to the top left corner of the page that the driver will keep. After setting the mode, use the SetCropArea function to set the actual values.

 

Parameters

 

BlackIceDEVMODE* pDevMode    

- pointer to the BlackIceDEVMODE structure

DWORD dwMode

 

– If set to 0, the values set using the SetCropArea function are the width of each page margin that the driver will cut off.

If set to 1, the values set using the SetCropArea function specify a rectangle relative to the top left corner of the page that is kept. The area outside the rectangle will be cut off.

 

Return value

 

TRUE on success otherwise FALSE.

 

Programming Notes

 

None

 

Code Example

 

None