---
title: "AviWatermark..::.DrawnWatermark Event"
canonical: https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_Codecs_AviWatermark_DrawnWatermark.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# AviWatermark.DrawnWatermark Event
 
Fires for each frame added to the writer object after all standard watermarks are drawn.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)
 
## Syntax
  
```
Protected Event DrawnWatermark As AviDrawWatermarkEventHandler
```
 
```csharp
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](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviDrawWatermarkEventArgs_Bitmap.htm.md) 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](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_Modified.htm.md) property to **true**. Otherwise your changes may be ignored.
 
**Note** 
The order of watermarking is the following:
 
1. [DrawingWatermark](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_Codecs_AviWatermark_DrawingWatermark.htm.md) event handler.
2. Bitmap watermark (see the [BitmapVisible](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWatermark_BitmapVisible.htm.md) and [Bitmap](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWatermark_Bitmap.htm.md) properties for more details).
3. Timer watermark (see [TimerVisible](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWatermark_TimerVisible.htm.md) and [TimerStyle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWatermark_TimerStyle.htm.md) 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

- [AviWatermark Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviWatermark.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
