ID2D1RenderTarget::DrawGeometry method (d2d1.h)
Draws the outline of the specified geometry using the specified stroke style.
void DrawGeometry( [in] ID2D1Geometry *geometry, [in] ID2D1Brush *brush, FLOAT strokeWidth, [in, optional] ID2D1StrokeStyle *strokeStyle );
The geometry to draw.
The brush used to paint the geometry's stroke.
The width of the stroke, in device-independent pixels. The value must be greater than or equal to 0.0f. If this parameter isn't specified, it defaults to 1.0f. The stroke is centered on the line.
[in, optional] strokeStyle
The style of stroke to apply to the geometry's outline, or NULL to paint a solid stroke.
This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawGeometry) failed, check the result returned by the ID2D1RenderTarget::EndDraw or ID2D1RenderTarget::Flush methods.
For an example, see How to Draw and Fill a Complex Shape.
|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]|