Sample: Apply watermark


Purpose
This sample shows how to apply a watermark to every image returned from the export operation on a map service.
See Deploying extensions to learn how to deploy the extension to your server.

How to use

See How to use ArcGIS samples for help on running the sample.

Data has been provided for your use with this sample. It can be found at <Your ArcGIS Developer Kit Install directory>/Samples/data/arcobjects/serverobjectinterceptors/ApplyWatermarkSOI.

  1. Deploy ApplyWatermarkSOI.soe to your server.
  2. Enable the SOI on a map service.
  3. Observe a watermark being added to all images returned from the service.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

soi/ApplyWatermarkSOI.java The ApplyWatermarkSOI Java Server Object Interceptor Extension class.
lib/ApplyWatermarkSOI.soe The deployable SOE file.