Imaging Lingo Overview
This section has some examples of using imaging lingo to create interesting visual effects. Director 8 and 8.5/MX source files are available for most examples.
Most of this section revolves around one simple lingo function:
canvas.copyPixels(Image, destRect, sourcerect, [Settingslist])
A few basic rules for imaging Lingo:
- When creating references to image objects. remember that image objects are passed by reference, not by value. To create a new copy of a cast member's image, not a new reference to the same image, use the duplicate() function.
- Work with an image object in RAM rather than an a reference to an existing cast member's image (which is slow)
- Using copyPixels is a faster way to copy an image into a member's image than setting the member.image property.
- Drawing directly into (the stage).image is faster than drawing into a member.image.
Last updated 19th of May, 2005
0 Comments
|
Add Comments