Lingo Dictionary > D-F > duplicate() (image function) |  |

duplicate() (image function)

Syntax

    imageObject.duplicate()

Description

This function creates and returns a copy of the given `imageObject`. The new image is completely independent of the original, and isn't linked to any cast member.

If you plan to make a lot of changes to an image, it's better to make a copy that's independent of a cast member.

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

`duplicate member`