Lingo Dictionary > G-K > imageCompression |  |

imageCompression

Syntax

    member(whichMember).imageCompression
    the imageCompression of member whichMember

Description

This bitmap cast member property indicates the type of compression that Director will apply to the member when saving the movie in Shockwave format. This property can be tested and set, and has no effect at runtime. Its value can be any one of these symbols:

Value | Meaning
--- | ---
#movieSetting | Use the compression settings of the movie, as stored in the movieImageCompression property. This is the default value for image formats not restricted to standard compression (see below).
#standard | Use Director's standard internal compression format.
#jpeg | Use JPEG compression. See imageQuality.

You normally set this property in the Property Inspector's Bitmap tab. However, if you want to set this property for a large number of images at once, you can set the property with a Lingo routine.

If a member doesn't support JPEG compression because it is 8-bit or lower, or if the image is linked from an external file, only `#standard` compression can be used. Image formats that do not support JPEG compression include GIF and 8-bit or lower images.

Example

This statement displays the imageCompression of member Sunrise in the message window:

    put member("Sunrise").imageCompression
    -- #movieSetting

See also

`imageQuality`, `movieImageCompression`, `movieImageQuality`