GdipGetRegionData

 

 

Description

Gets data that describes this region.

Syntax

GpStatus WINGDIPAPI GdipGetRegionData(

    GpRegion *region,

    BYTE * buffer,

    UINT bufferSize,

    UINT * sizeFilled

);

PowerBASIC Syntax

DECLARE FUNCTION GdipGetRegionData ( _

    BYVAL region AS DWORD, _

    BYREF buffer AS ANY, _

    BYVAL bufferSize AS DWORD, _

    BYREF sizeFilled AS DWORD _

) AS LONG

Parameters

 

region

[in] Pointer to the Region object.

buffer

[out] Pointer to an array of BYTE values that receives the region data.

bufferSize

[in] Integer that specifies the size, in bytes, of the buffer array. The size of the buffer array can be greater than or equal to the number of bytes required to store the region data. The exact number of bytes required can be determined by calling the GdipGetRegionDataSize method.

sizeFilled

[out] Pointer to an LONG that receives the number of bytes of data actually received by the buffer array. The default value is NULL.

Remarks

The GdipGetRegionDataSize method can be used before the GdipGetRegionData method to determine the number of bytes needed to store the region data. Then, you can allocate a buffer that is the correct size to store the region data and set the buffer parameter to point to the buffer.

 

Valid HTML 4.01 Transitional