ID2D1DeviceContext2::GetGradientMeshWorldBounds method
Returns the world bounds of a given gradient mesh.
Syntax
HRESULT GetGradientMeshWorldBounds(
[in] ID2D1GradientMesh *gradientMesh,
[out] D2D1_RECT_F *pBounds
);
Parameters
- gradientMesh [in]
-
Type: ID2D1GradientMesh*
The gradient mesh whose world bounds will be calculated.
- pBounds [out]
-
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
|
Minimum supported client |
Windows 10 [desktop apps | UWP apps] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows 10 Mobile |
|
Header |
|
|
DLL |
|
See also