duplicate() (Image)

Usage

-- Lingo syntax
imageObjRef.duplicate()

// JavaScript syntax
imageObjRef.duplicate();

Description

Image method. Creates and returns a copy of a given image.

The new image is completely independent of the original, and is not linked to any cast member. If planning to make a lot of changes to an image, it is better to make a copy that is independent of a cast member.

Parameters

None.

Example

This statement creates a new image object from the image of cast member Lunar Surface and places the new image object into the variable workingImage:

workingImage = member("Lunar Surface").image.duplicate()

See also

image()