This documentation is for the old version. Go to the latest Graphics Mill docs

AviWatermark.DrawnWatermark Event

Fires for each frame added to the writer object after all standard watermarks are drawn.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)

Syntax

Visual Basic
Protected Event DrawnWatermark As AviDrawWatermarkEventHandler
C#
protected event AviDrawWatermarkEventHandler DrawnWatermark

Remarks

Use this event if you want to display watermark in more advanced way than allowed by the bitmap and timer watermarks. For example, it may be useful when you want your watermark to depend on the timing information. A typical example - when you need to display the watermark only first several seconds (similar to musical clips).

In this event you get current frame image in the Bitmap argument passed to the event handler. When you draw something on it or change it anyhow else, all changes are applied when the file is added to AVI file. However if you modify the bitmap using direct access to pixels, do not forget to set the Modified property to true. Otherwise your changes may be ignored.

Note

The order of watermarking is the following:

  1. DrawingWatermark event handler.
  2. Bitmap watermark (see the BitmapVisible and Bitmap properties for more details).
  3. Timer watermark (see TimerVisible and TimerStyle properties for more details).
  4. DrawnWatermark event handler

This way all additional watermarks are drawn below the image you draw in this event handler.

See Also

Reference