See Also Examples Applies To
Creates a new GdPicture Image from the area of another GdPicture Image.
Syntax
object.CreateClonedImageArea (nimageID, nSrcLeft, nSrcTop, nWidth, nHeight)
The CreateClonedImageArea syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nimageID | Required. Long. GdPicture Image handle. The handle of the image area to clone. |
| nSrcLeft | Required. Long. Left pixel source of the area to clone. |
| nSrcTop | Required. Long. Top pixel source of the area to clone. |
| nWidth | Required. Long. Width of the area to clone. |
| nHeight | Required. Long. Height of the area to clone. |
Returns
Long.
0: The image could not created. Use the GetStat() function to determine the
reason this function failed.
Non-zero: GdPicture Image handle. Handle of the created image.
Remarks
If the image to clone is a multibitmap image, this function will clone only the selected bitmap and will create a single frame image.
Category
Load, Import & Create an image