OnPaintStage
Syntax
public delegate void OnPaintStageEventHandler(object sender, PaintStage stage, System.Drawing.Graphics Canvas);
public event OnPaintStageEventHandler OnPaintStage;
Description
Raised when the Flash movie is being painted in transparent mode.
The sequence is:
- Background is filled with the background color.
- OnPaintStage is raised with stage = PrePaint. You can modify the background here.
- The movie is painted over the background.
- OnPaintStage is raised with stage = AfterPaint. You can modify the final image here.
This event is useful to provide a custom background, for example to simulate transparency.