SetWmFirstImageBrightness

Sets the brightness 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.

 

SetWmFirstImageBrightness (pDevMode As Long, Brightness As Long, Portrait As Boolean) As Boolean

 

Input value:pDevMode        - handle to the BlackIceDEVMODE structure.

Input value:Brightness        - Brightness (Long). This value must be between 1 and 100.

Input value:Portrait  - If this parameter is TRUE, you set the brightness of the watermark for portrait pages, otherwise you set the brightness 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.