MImgCreateCopyEx

Functions ››
Parent Previous Next

hImageCopy = MImgCreateCopyEx( hImage, nLeft, nTop, nRight, nBottom, nType, nFlags )

Creates a copy of an image.

Parameters
hImage
Number: Handle of the image

nLeft,nTop,nRight,nBottom
Number: Part of the image to copy. The top left corner of an image is always 0,0.

nType
Number: Specify MIMG_TYPE_UNKNOWN to use the type of the source image or one of the supported image types.

nFlags
Number: Any combination of the following constants:

MIMG_COPY_OPACITY

Copies the source image's opacity

Return
Number: Handle of the copy if successful or 0 if an error occurs

Example
In this example a copy with a size of 10 x 10 pixels is created. It has the same type as the source image. The opacity is also copied:

Set hImageCopy = MImgCreateCopyEx( hImage, 5, 5, 15, 15, MIMG_TYPE_UNKNOWN, MIMG_COPY_OPACITY )

See also
MImgCreateCopy
MImgCreateHBITMAP
MImgCreateHICON
MImgCreateVisPic

Created with the Personal Edition of HelpNDoc: What is a Help Authoring tool?