GdipCloneBitmapAreaI

 

 

Description

Creates a new Bitmap object by copying a portion of this bitmap.

Syntax

GpStatus WINGDIPAPI GdipCloneBitmapAreaI(

    INT x,

    INT y,

    INT width,

    INT height,

    PixelFormat format,

    GpBitmap *srcBitmap,

    GpBitmap **dstBitmap

);

PowerBASIC Syntax

DECLARE FUNCTION GdipCloneBitmapAreaI ( _

    BYVAL x AS LONG, _

    BYVAL y AS LONG, _

    BYVAL nWidth AS LONG, _

    BYVAL nHeight AS LONG, _

    BYVAL PixelFormat AS LONG, _

    BYVAL srcBitmap AS DWORD, _

    BYREF dstBitmap AS DWORD _

) AS LONG

Parameters

 

x

[in] Long value that specifies the x-coordinate of the upper-left corner of the rectangle that specifies the portion of this bitmap to copy.

y

[in] Long value that specifies the y-coordinate of the upper-left corner of the rectangle that specifies the portion of this bitmap to copy.

width

[in] Long value that specifies the width of the rectangle that specifies the portion of this bitmap to copy.

height

[in] Long value that specifies the height of the rectangle that specifies the portion of this image to copy.

format

[in] Long integer value that specifies the pixel format of the new bitmap.

srcBitmap

[in] Pointer to the source Bitmap object.

destBitmap

[out] Pointer to a DWORD variable that received a pointer  to the cloned Bitmap object.

 

Valid HTML 4.01 Transitional