CopyImage

Description

Copies a portion of the given image into a new image. The x, y, width, height values are in pixels and represent the portion of the image you would like to copy into a new image. The new image with have the same size as the width and height values given. If an image already exists with the new ID given it must be deleted before calling this command. This is a slow command and should not be called every frame.

Definition

CopyImage( newImage, fromImage, x, y, width, height )

integer CopyImage( fromImage, x, y, width, height )

Parameters