Watermarker.com home page. Watermarking, adding visible watermarks, protect digital photos and images
Visible Watermarks
Home Products Download Order Contact Us
Home > Products > AiS Watermarker ActiveX > Help
Help of usage AiS Watermarker ActiveX
Example of usage AiS Watermarker ActiveX. Watermarked image
click to enlarge

Our testimonials

Visual Basic News & Information Source

AiS Watermark Installation

To use this ASP component move the DLL into a subdirectory (like \winnt\system32 for NT or \windows\system for Win95). To register the component on the system change to the directory where you installed the DLL and type:

regsvr32 AiSWatermark.dll

Example of usage new Watermarker interface (ASP)

Simple ASP Example of usage old Watermarker interface

AiS Watermarker Component Properties

PropertyTypeDescription
FontNamestringspecified the name of the font.
Example:
Watermark.FontName = "MS Sans Serif"
FontSizeintegerthe size of the font.
Example:
Watermark.FontSize = 12
FontColorintegerthe color of the font.
Example:
Watermark.FontColor = &hFF00ee
Watermark.FontColor = RGB(&hE2, &hBB, &hF3)
Watermark.FontColor = vbRed
FontStyleintegerthe style of the font.
Example:
Watermark.FontStyle = CI_fsItalic + CI_fsBold
Allowed values:
fsBold = 1
fsItalic = 2
fsUnderline = 4
fsStrikeOut = 8
or
CI_fsBold = 1
CI_fsItalic = 2
CI_fsUnderline = 4
CI_fsStrikeOut = 8
FontCharsetintegerCharset of used text watermark font
TextLineSpaceintegerthe space between two lines of text watermark.
WatermarkImageFilestringthe filename of image watermark (used only for Type=CI_TYPE_IMAGE=2)
BorderStyleintegerStyle of the border
Allowed values:
CI_BORDERSTYLE_NONE = 1
CI_BORDERSTYLE_LINE = 2
or
bsNone = 1
bsLine = 2
BorderColorintegerColor of the border
BorderWidthintegerWidth of the border in pixels
BorderBottomintegerBottom border of image without watermarks
BorderTopintegerTop border of image without watermarks
BorderRightintegerRight border of image without watermarks
BorderLeftintegerLeft border of image without watermarks
HorizontalSpaceintegerHorizontal space between string (only for Style=CI_STYLE_TILE)
VerticalSpaceintegerVertical space between string (only for Style=CI_STYLE_TILE)
JPEGQualityintegerQuality of JPEQ images 0..99
Positionintegerthe positions of watermark (only for Style=CI_STYLE_POSITION)
Example:
Watermark.Position = CI_POSITION_BOTTOM_RIGHT + CI_POSITION_TOP_LEFT
Allowed values:
wpTopLeft = 1
wpTopCenter = 2
wpTopRight = 4
wpCenterLeft = 8
wpCenter = 16
wpCenterRight = 32
wpBottomLeft = 64
wpBottomCenter = 128
wpBottomRight = 256
or
CI_POSITION_TOP_LEFT = 1
CI_POSITION_TOP_CENTER = 2
CI_POSITION_TOP_RIGHT = 4
CI_POSITION_CENTER_LEFT = 8
CI_POSITION_CENTER = 16
CI_POSITION_CENTER_RIGHT = 32
CI_POSITION_BOTTOM_LEFT = 64
CI_POSITION_BOTTOM_CENTER = 128
CI_POSITION_BOTTOM_RIGHT = 256
Styleintegerstyle of watermark position (tile or specified positions).
Example:
Watermark.Style = CI_STYLE_POSITION
Allowed values:
wsFixed =1
wsTile =2
or
CI_STYLE_POSITION =1
CI_STYLE_TILE =2
TransparencyintegerTransparency of watermark level (0..255, 0 - non transparent, 255- full transparent)
WatermarkTransparentColorintegerTransparent color of watermark image.
Example:
Watermark.WatermarkTransparentColor = &hFF00ee
Watermark.WatermarkTransparentColor = RGB(&hE2, &hBB, &hF3)
Watermark.WatermarkTransparentColor = vbWhite
WatermarkUseTransparentboolUse or not transparent color for merge watermark image with source image
WatermarkTypeintegerthe type of watermark (image of text).
Example: Watermark.Type = CI_TYPE_TEXT
Allowed values:
wtText =1
wtImage =2
or
CI_TYPE_TEXT =1
CI_TYPE_IMAGE =2
Errorstringthe description of error
Textstringthe text of watermark. You can use macros for customize your text.
Example:%file% (W:%width%; H:%height%) %sizeK%Kb
Result watermark: c:\image1.jpg (W:300; H:200) 34Kb
Note! If you want to add percent "%" character to your watermark text, you must write two character "%%".
TextAlignmentintegerText alignment
Example: Watermark.TextAlignment = CI_ALIGNMENT_CENTER
Allowed values:
taCenter =0
taLeft =1
taRigt =2
taWidth =3
or
CI_ALIGNMENT_CENTER =0
CI_ALIGNMENT_LEFT =1
CI_ALIGNMENT_RIGHT =2
CI_ALIGNMENT_WIDTH =3
TextAngleintegerAngle for rotation watermark text (0..360°)
StretchboolAllow stretch watermark
StretchProportionalboolSave proportion of stretched watermark (only for image watermarks)
StretchPercentintegerPercent of stretching
SaveOriginalDateboolSave date and time of original image file
SaveEXIFboolSave EXIF info from original image in the protected image
SaveIPTCboolSave IPTC info from original image in the protected image
BackgroundColorintegerTransparent color for watermark
TextBackgroundColorintegerthe color of background of text watermark
Example:
Watermark.TextBackgroundColor = &hFF00ee
Watermark.TextBackgroundColor = RGB(&hE2, &hBB, &hF3)
Watermark.TextBackgroundColor = vbWhite
MaskTypeintegerMask for adding watermark into original image. Allowed values:
mtSolid = 1
mtRandom = 2
mtVertLines = 4
mtHorizLines = 8
mtCross= 16
mtDownDiagonal = 32
mtUpDiagonal = 64
mtCrossDiagonal = 128
mtSquare = 256
or
CI_MASKTYPE_Solid = 1
CI_MASKTYPE_Random = 2
CI_MASKTYPE_VertLines = 4
CI_MASKTYPE_HorizLines = 8
CI_MASKTYPE_Cross= 16
CI_MASKTYPE_DownDiagonal = 32
CI_MASKTYPE_UpDiagonal = 64
CI_MASKTYPE_CrossDiagonal = 128
CI_MASKTYPE_Square = 256
MaskRandomFillintegerdensity of filling random mask (0..100). Used only if MaskType=CI_MASKTYPE_Random
MaskLineThickintegerwidth of lines mask. Used only if MaskType>CI_MASKTYPE_Random
MaskStepintegerspace between lines of mask. Used only if MaskType>CI_MASKTYPE_Random
EmbossboolEmbossed style of watermark

AiS Watermarker Component Methods

MethodParametersResultDescription
LoadSettingsFileName
Section
N/ALoad watermark settings from file. Parameter Section is optional, default section name is "Watermark Settings".
SaveSettingsFileName
Section
N/ASave watermark settings to file. Parameter Section is optional, default section name is "Watermark Settings".
PrepareN/AN/APrepare for call MergeWatermak (used once before protect multitude images)
MergeWatermarkSourceImageFileName
TargetImageFileName
N/APlace watermark to image and save new image
MakeThumbnailSourceFileName
ThumbnailFileName
Width
Height
N/AMake thumbnail from SourceFileName image and save it to the ThumbnailFileName. Width and Height are maximum size of thumbnail image.
OpenImageFileNameN/AOpen image from file FileName
ReopenImageN/AN/AReopen last image
ProtectImageN/AN/AProtect current image by use current settings
SaveImageFileNameN/ASave image with specified image file name
SaveThumbnailFileName
width
height
N/AMake and save thumbnail of the opened image. Note! Call SaveThumbnail before first call of ProtectImage if you want to receive thumbnail without watermark.
CloseImageN/AN/AClose open image and clear all used buffers
LoadUserMacrosFileNameN/ALoad user defined macros from the file
SaveUserMacrosFileNameN/ASave all user defined macros in the file
SetMacrosMacroName
Value
N/ASet Value as value of macros MacroName. Example:
call SetMacros("%c%, "©")
GetMacrosMacroNamestringreturn value of macros MacroName. Example:
text= wm.GetMacros("file")
result of the command will be full image file name with full path.
ParseTextTextstringreturn parsed string. Example:
text= wm.ParseText("Copyright %c% 2000-%year% Watermarker.com")
result of the text will be "Copyright © 2000-2003 Watermarker.com"
see list of all macros

See also

Examples of using AiS Watermarker ActiveX
Macros for using in AiS Watermarker ActiveX
Download AiS Watermarker ActiveX Now!
Order AiS Watermarker ActiveX

Search Watermarker.com for
Loading
Product information
AiS Watermarker ActiveX
File name aiswpd31.exe
Download size 1.5 Mb
Download
Version 3.6.0.136
DEVELOPER license - $49.95
Buy now
SERVER license - $99.95
Buy now
ENTERPRISE license - $299.95
Buy now
DISTRIBUTION license - $199.95
Buy now

Watermark articles

How to protect digital works: comparison of watermarking methods and tools
 
Books about:
Copyright protection
Cryptography
Data compression
Data hiding
Digital photography
Digital video
Digital watermarking
Image compression
Image processing
Information hiding
Jpeg
Jpeg2000
Photoshop
Steganography
Video compression
Watermarking
Desktop backgrounds
Watermarking links
Watermarker.com site map