User Guide
imageCompression 809
If you plan to make a lot of changes to the image property, it is faster to copy the image property
into a new image object using the Member object’s
duplicate() method, apply your changes to
the new image object, and then set the original item’s image to the new image object. For
nonbitmap members, it is always faster to use the
duplicate() method.
Example
These statements place a reference to the image of the Stage into the variable myImage, and then
put that image into the window named Flower:
-- Lingo syntax
myImage = _movie.stage.image
window("Flower").image = myImage
// JavaScript syntax
var myImage = _movie.stage.image;
window("Flower").image = myImage;
See also
duplicate() (Member), Window
imageCompression
Usage
-- Lingo syntax
_movie.imageCompression
memberObjRef.imageCompression
// JavaScript syntax
_movie.imageCompression;
memberObjRef.imageCompression;
Description
Movie and bitmap cast member property; indicates the type of compression that Director applies
to internal (non-linked) bitmap cast members when saving a movie in Shockwave Player format.
Read/write.
Valid values for
imageCompression include the following:
You normally set this property in the Director Publish Settings dialog box.
Example
This statement displays in the Message window the imageCompression that applies to the
currently playing movie:
-- Lingo syntax
put(_movie.imageCompression)
Value Meaning
#standard Use the Director standard internal compression format.
#movieSetting Use the compression settings of the movie, as stored in the
_movie.imageCompression property. This is the default value for image formats
not restricted to standard compression.
#jpeg Use JPEG compression. See
imageQuality.