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.
SetCropMode(pDevMode As Long, dwMode As Long) As Boolean
Input value pDevMode |
- Handle to the BlackIceDEVMODE structure |
Input value 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. |
NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.