Fires for each frame added to the writer object before the standard watermarks are drawn.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)
Public Event DrawingWatermark As AviDrawWatermarkEventHandler
public event AviDrawWatermarkEventHandler DrawingWatermark
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.
The order of watermarking is the following:
This way all additional watermarks are drawn above the image you draw in this event handler.