ID2D1GeometryGroup::GetSourceGeometries method (d2d1.h)

Retrieves the geometries in the geometry group.

Syntax

void GetSourceGeometries(
  [out] ID2D1Geometry **geometries,
        UINT32        geometriesCount
);

Parameters

[out] geometries

Type: const ID2D1Geometry**

When this method returns, contains the address of a pointer to an array of geometries to be filled by this method. The length of the array is specified by the geometryCount parameter. If the array is NULL, then this method performs no operation. You must allocate the memory for this array.

geometriesCount

Type: UINT

A value indicating the number of geometries to return in the geometries array. If this value is less than the number of geometries in the geometry group, the remaining geometries are omitted. If this value is larger than the number of geometries in the geometry group, the extra geometries are set to NULL. To obtain the number of geometries currently in the geometry group, use the GetSourceGeometryCount method.

Return value

None

Remarks

The returned geometries are referenced and counted, and the caller must release them.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1.h
Library D2d1.lib
DLL D2d1.dll

See also

ID2D1GeometryGroup