Method GetGradientMeshWorldBounds
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
GetGradientMeshWorldBounds(IGradientMesh)
Returns the world bounds of a given gradient mesh.
RectFloat GetGradientMeshWorldBounds(IGradientMesh gradientMesh)
Parameters
gradientMesh
IGradientMeshThe gradient mesh whose world bounds will be calculated.
Returns
- RectFloat
The bounds of the gradient mesh, in device-independent pixels (DIPs).
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(IGradientMesh) 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.