ID2D1DeviceContext2::GetGradientMeshWorldBounds method (d2d1_3.h)

Returns the world bounds of a given gradient mesh.

Syntax

HRESULT GetGradientMeshWorldBounds(
  [in]  ID2D1GradientMesh *gradientMesh,
  [out] D2D1_RECT_F       *pBounds
);

Parameters

[in] gradientMesh

Type: ID2D1GradientMesh*

The gradient mesh whose world bounds will be calculated.

[out] pBounds

Type: D2D1_RECT_F*

When this method returns, contains a pointer to the bounds of the gradient mesh, in device independent pixels (DIPs).

Return value

Type: HRESULT

S_OK if successful, otherwise a failure HRESULT.

Remarks

The world bounds reflect the current DPI, unit mode, and world transform of the context. They indicate which pixels would be impacted by calling DrawGradientMesh with the given gradient mesh. They do not reflect the current clip rectangle set on the device context or the extent of the context’s current target.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps | UWP apps]
Minimum supported server Windows Server 2016 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1DeviceContext2