SetWatermarkPosition

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.

 

SetWatermarkPosition (pDevMode As Long, Position As Long, Portrait As Boolean) As Boolean

 

Input value:pDevMode        - handle to the BlackIceDEVMODE structure.

 

Input value:Position - Position (Long).

 

Available values:

BLF_WATERMARK_POSITION_STRETCH_TO_FIT (1),

BLF_WATERMARK_POSITION_STRETCH_TO_WIDTH (2),

BLF_WATERMARK_POSITION_CENTER (4),

BLF_WATERMARK_POSITION_TILE (8),

BLF_WATERMARK_POSITION_BOTTOM (16),

BLF_WATERMARK_POSITION_BOTTOM_STRETCH (32),

BLF_WATERMARK_POSITION_TOP (64),

BLF_WATERMARK_POSITION_TOP_STRETCH (128),

BLF_WATERMARK_POSITION_TOP_LEFT (320),

BLF_WATERMARK_POSITION_TOP_RIGHT (576),

BLF_WATERMARK_POSITION_BOTTOM_LEFT (272),

BLF_WATERMARK_POSITION_BOTTOM_RIGHT (528)

Input value:Portrait  - 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

 

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