SetWatermark
Sets the watermark image used for renders of this SIS Workspace Definition (SWD) in GeognoSIS.
| Visual Basic | 
|---|
| Public Function SetWatermark( _
   ByVal watermark As String, _
   ByVal mode As Integer, _
) As Integer | 
- watermark
- The named watermark to use.
- mode
- The mode$ variable is bitwise or a combination of the Justify and Use flags.Public Const SIS_WATERMARK_JUSTIFY_TOPLEFT = 0Public Const SIS_WATERMARK_JUSTIFY_TOPRIGHT = 1Public Const SIS_WATERMARK_JUSTIFY_BOTTOMLEFT = 2Public Const SIS_WATERMARK_JUSTIFY_BOTTOMRIGHT = 3Public Const SIS_WATERMARK_JUSTIFY_CENTERED = 4Public Const SIS_WATERMARK_JUSTIFY_SCALEDTOFIT = 5Public Const SIS_WATERMARK_USE_GLOBAL = 0Public Const SIS_WATERMARK_USE_SWD = 256Public Const SIS_WATERMARK_USE_CUSTOM = 512Description of the Use flags: 
- GLOBAL - Uses the watermark defined by GeognoSIS Manager. The justification of "mode&" is ignored.
- 
                                                            
 SWD - Uses the watermark defined by the SWD attribute "ASwdWatermark$" and the justification defined by the SWD attribute "ASwdWatermarkMode&". The justification of "mode&" is ignored.
- CUSTOM - Uses the watermark defined by "watermark$" and the justification defined by "mode&".
Both "watermark$" and "ASwdWatermark$" refer to the name of a NOL named item.
The flags are defined in the GeognoSIS programming (constants) file.
Available: GEO
Group:
sis.SetWatermark "C:\IMAGE.PNG", 0
 Search Tips
Search Tips