SetWatermarkFirstImagePosition

 

#include “BlackIceDEVMODE.h”

 

BOOL                         SetWatermarkFirstImagePosition (BlackIceDEVMODE* pDevMode, DWORD dwPosition, BOOL bPortrait);

Description

Sets the position of the watermark image. This image will be the watermark on the first printed image, when the ‘Unique watermark on the first page’ option is enabled. The brightness of the watermark image file is stored in the registry under the HKEY_CURRENT_USER key.

Parameters

BlackIceDEVMODE* pDevMode               - pointer to the BlackIceDEVMODE structure.

DWORD dwPosition                                   - Position (DWORD).

 

Available values:

BLF_FIRST_WATERMARK_POSITION_STRETCH_TO_FIT,
BLF_FIRST_WATERMARK_POSITION_STRETCH_TO_WIDTH,
BLF_FIRST_WATERMARK_POSITION_CENTER,
BLF_FIRST_WATERMARK_POSITION_TILE,
BLF_FIRST_WATERMARK_POSITION_BOTTOM,

BLF_FIRST_WATERMARK_POSITION_BOTTOM_STRETCH.

 

BOOL bPortrait                                             - If this parameter is TRUE, you set the position of the watermark for portrait pages, otherwise you set the position of the watermark for landscape pages.

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None