picture (Window)

Usage

-- Lingo syntax
windowObjRef.picture

// JavaScript syntax
windowObjRef.picture;

Description

Window property; provides a way to get a picture of the current contents of a window--either the Stage window or a movie in a window (MIAW). Read-only.

You can apply the resulting bitmap data to an existing bitmap or use it to create a new one.

If no picture exists, this property returns VOID (Lingo) or null (JavaScript syntax).

Example

This statement grabs the current content of the Stage and places it into a bitmap cast member:

-- Lingo syntax
member("Stage image").picture = _movie.stage.picture

// JavaScript syntax
member("Stage image").picture = _movie.stage.picture;

See also

Window