Copys a portion of the given image into a new image.
constructor Copy(const Owner: TAgkObject; const SrcImage: TAgkImage; const X: Integer; const Y: Integer; const Width: Integer; const Height: Integer);
Parameters |
Description |
const Owner: TAgkObject |
the owner of the new image (eg. a TAgkScene object). |
const SrcImage: TAgkImage |
the source image to copy. |
const X: Integer |
The X coordinate of the top left corner of the box to copy. |
const Y: Integer |
The Y coordinate of the top left corner of the box to copy. |
const Width: Integer |
The width of the box to copy |
const Height: Integer |
The height of the box to copy |
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 will have the same size as the width and height values given. This is a slow command and should not be called every frame.
Copyright (c) 2012. All rights reserved.
|