Help us improve Softanics
We use analytics cookies to understand which pages and downloads are useful. No ads. Privacy Policy

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:

  1. Background is filled with the background color.
  2. OnPaintStage is raised with stage = PrePaint. You can modify the background here.
  3. The movie is painted over the background.
  4. 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.