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)
Public NotInheritable Class AviWatermark _ Inherits LockableObject
public sealed class AviWatermark : LockableObject
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:
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.
Timer watermark displays the time-related information on the video. This class supports three kinds of timer watermarks (described by the AviTimerStyle enumeration):
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.