GetCropMode

#include “BlackIceDEVMODE.h”

 

DWORD GetCropMode(BlackIceDEVMODE* pDevMode);

 

Description

 

Returns 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 GetCropArea function to get the width of the margins or the rectangle that is kept after cropping.

 

Parameters

 

BlackIceDEVMODE* pDevMode   - pointer to the BlackIceDEVMODE structure

 

Return value

 

0: the values returned by the GetCropArea function are the width of each page margin that the driver will cut off.

1: the values returned by the GetCropArea 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.

 

Programming Notes

 

None

 

Code Example

 

None