GdipGetRegionScansI

 

 

Description

Gets an array of rectangles that approximate this region. The region is transformed by a specified matrix before the rectangles are calculated.

Syntax

GpStatus WINGDIPAPI GdipGetRegionScansI(

    GpRegion *region,

    GpRect* rects,

    INT* count,

    GpMatrix* matrix

);

PowerBASIC Syntax

DECLARE FUNCTION GdipGetRegionScansI ( _

    BYVAL region AS DWORD, _

    BYREF rects AS RectL, _

    BYREF count AS LONG, _

    BYVAL matrix AS DWORD _

) AS LONG

Parameters

 

region

[in] Pointer to the Region object.

rects

[out] Pointer to an array of RectL structures that receives the rectangles.

count

[out] Pointer to an LONG that receives a value that indicates the number of rectangles that approximate this region. The value is valid even if rects is a NULL pointer.

matrix

[in] Pointer to a Matrix object that is used to transform the region.

Remarks

The GdipGetRegionScansCount method can be used first to determine the number of rectangles. Then, you can allocate a buffer that is the correct size and set the rects parameter to point to the buffer.

 

Valid HTML 4.01 Transitional