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

AviWatermark Class

This class enables you to put a watermark on each frame when creating new AVI file.

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

Syntax

Visual Basic
Public NotInheritable Class AviWatermark _
	Inherits LockableObject
C#
public sealed class AviWatermark : LockableObject

Remarks

Watermark is some imagery which is drawn on video frames. For example, it can be a logo of your company, timer, timestamp, video movie caption, subtitles, etc.

Each watermark object is always associated with a AviWriter object. Whenever a frame is added into the writer, the watermark is automatically drawn on this frame.

The only way to get an instance of the AviWatermark class is to retrieve it via the Watermark property of the writer.

AviWatermark supports two kinds of watermarks: bitmap watermark and timer watermark:

  1. Bitmap watermark is represented the static raster image drawn on each frame. To enable it, set the BitmapVisible property to true and put the bitmap you want to draw on the video to the Bitmap property.

  2. Timer watermark displays the time-related information on the video. This class supports three kinds of timer watermarks (described by the AviTimerStyle enumeration):

    • CurrentDateTime - date/time of movie creation.
    • VideoTime - video timer (displays hours, minutes, and seconds of the current frame).
    • VideoTimeAndFrame - the same as previous point, but in addition to timer it displays the current frame number.

    To enable the timer watermark, set the TimerVisible property to true and select the necessary timer style using the TimerStyle property. There are also other TimerXXX properties which adjusts the apperarance of this watermark, etc.

These two options cover most watermarking needs. However if it is not flexible enough for you, you can use DrawingWatermark and DrawnWatermark events. These events are raised for each frame to be watermarked, and you can draw any watermark you need. As usual it is handy when the watermark should be variable (e.g. display first 10 seconds and hide it for the rest of the movie).

You can combine all these kinds of watermarking. In particular, you can set both BitmapVisible and TimerVisible properties to true and additionally draw the watermark using events.

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.LockableObject
L Aurigma.GraphicsMill.Codecs.AviWatermark

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

Object Model







See Also

Reference