Cadcorp SIS API Methods

SetWatermark

Description

Sets the watermark image used for renders of this SIS Workspace Definition (SWD) in GeognoSIS.

Syntax

Visual Basic
Public Function SetWatermark( _
   ByVal watermark As String, _
   ByVal mode As Integer, _
) As Integer

Parameters

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 = 0
Public Const SIS_WATERMARK_JUSTIFY_TOPRIGHT = 1
Public Const SIS_WATERMARK_JUSTIFY_BOTTOMLEFT = 2
Public Const SIS_WATERMARK_JUSTIFY_BOTTOMRIGHT = 3
Public Const SIS_WATERMARK_JUSTIFY_CENTERED = 4
Public Const SIS_WATERMARK_JUSTIFY_SCALEDTOFIT = 5
Public Const SIS_WATERMARK_USE_GLOBAL = 0
Public Const SIS_WATERMARK_USE_SWD = 256
Public Const SIS_WATERMARK_USE_CUSTOM = 512

Description 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.

Remarks

Available: GEO

Group:

Example

sis.SetWatermark "C:\IMAGE.PNG", 0


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).