Available in the LEADTOOLS Imaging toolkit. |
PaintNotification event (Main Control)
Visual
Basic example
Visual C++ 4.0 example
Visual J++ example
Syntax void PaintNotification (short uPass, short uType);
Overview: Refer to Using Special Effects When Painting.
Remarks
Occurs before painting and after each pass when implementing a paint effect or transition effect.
This event lets you change the behavior of the effect before it finishes. The uType parameter lets you know whether a transition or an image is being painted. The uPass parameter works as follows:
Value |
Meaning |
0 |
No passes have painted. The first pass is next. |
1 |
One pass has painted. The second pass is next. |
2 |
The second pass has painted. The third pass is next. |
And so forth....
The PaintMaxPasses property specifies the number of passes to complete the image or transition. You can set the PaintPass property in this event if you want to skip or repeat a pass (for example, if you want to end with a blend of old and new images).
See Also
Elements: PaintEffect property, TransitionEffect property, PaintPass property, PaintMaxPasses property, PaintNotificationDelay property