HOW TO

Add watermark text or images into ArcIMS Image service

Last Published: April 25, 2020

Summary

Information provided is the procedure for adding a watermark image or text onto the images generated from an Image map service.

Procedure



  1. Open the .AXL file using a text editor and add the following lines before the </MAP> tag.

    Code:
    <LAYER type="acetate" name="textwatermark" visible="true">
    <OBJECT units="pixel">
    <TEXT coords="200 200" label="Demo Watermark">
    <TEXTMARKERSYMBOL fontstyle="regular" fontsize="20" font="Arial" transparency="0.3" fontcolor="170,170,170" angle="45" />
    </TEXT>
    </OBJECT>
    </LAYER>


    Note:
    The above tag adds a new acetate layer into the .AXL file with a text object using the TEXTMARKERSYMBOL. To further customize how the actual text looks, refer to the tag TEXTMARKERSYMBOL in the ArcXML Programmers Reference Guide

  2. To add multiple text based watermarks, use the following code:

    Code:
    <LAYER type="acetate" name="testwatermark" visible="true">
    <OBJECT units="pixel">
    <TEXT coords="200 200" label="Demo Watermark">
    <TEXTMARKERSYMBOL fontstyle="regular" fontsize="20" font="Arial" transparency="0.3" fontcolor="170,170,170" angle="45" />
    </TEXT>
    </OBJECT>

    <OBJECT units="pixel">
    <TEXT coords="150 150" label="One more Demo Watermark">
    <TEXTMARKERSYMBOL fontstyle="regular" fontsize="20" font="Arial" transparency="0.3" fontcolor="255,0,0" angle="0" />
    </TEXT>
    </OBJECT>
    </LAYER>

  3. To add an image instead of text, use the following code:

    Code:
    <LAYER type="acetate" name="imagewatermark" visible="true">
    <OBJECT units="pixel">
    <POINT coords="200 300">
    <RASTERMARKERSYMBOL image="path to watermark image file" transparency="0.2" size="142,142" antialiasing="true" />
    </POINT>
    </OBJECT>
    </LAYER>


    Note:
    Adding big images into the acetate layer might affect the performance. It is important to keep the size of the image to a minimum. The image also needs to be .JPEG or .GIF for the transparency to work.

Article ID:000008164

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic