Functions

Saving and Restoring Images

GetImage(DrawXtra member, member bitmap) - copy the bitmap stored in the canvas to a bitmap castmember.
Example: GetImage(member "canvas", member "saveimage")

SetImage(DrawXtra member, member bitmap, string mappingMode) - copy the bitmap from a bitmap castmember to the canvas. The canvas will be resized to the dimensions of the bitmap. MappingMode can equal "fixed" or "stretch", and will determine if the image will be stretched to fill the whole canvas.
Example: SetImage(member "canvas", member "loadimage", "stretch")

SaveImage(DrawXtra member, string pathname) - save the canvas image to either a PICT file (Macintosh) or BMP file (Windows). This function is disabled in Shockwave for security reasons.
Example: SaveImage(member "canvas", "testimage.bmp")

LoadImage(DrawXtra member, string pathname) - loads the canvas image. This function is disabled in Shockwave for security reasons.
Example: LoadImage(member "canvas", "testimage.bmp")

DrawImage(DrawXtra member, member bitmap, integer x, integer y) - places a bitmapped castmember onto the canvas with (x, y) specifying the upper-left corner of the image.
Example: DrawImage(member "canvas", "testimage", 10,10)

DrawImage(DrawXtra member, string filename, integer x, integer y) - places an image from disk onto the canvas with (x, y) specifying the upper-left corner of the image. This function is disabled in Shockwave for security reasons.
Example: DrawImage(member "canvas", "C:\testimage.bmp", 10,10)
Getting Started Packed Colors Properties Creating Projectors Using the Xtra in Shockwave Known Issues How to Order and Register Licensing and Availability Technical Support