Skip to content

Latest commit

 

History

History
103 lines (71 loc) · 3.48 KB

nf-d2d1-id2d1rendertarget-drawgeometry.md

File metadata and controls

103 lines (71 loc) · 3.48 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d2d1.ID2D1RenderTarget.DrawGeometry
ID2D1RenderTarget::DrawGeometry (d2d1.h)
Draws the outline of the specified geometry using the specified stroke style.
DrawGeometry
DrawGeometry method [Direct2D]
DrawGeometry method [Direct2D]
ID2D1RenderTarget interface
ID2D1RenderTarget interface [Direct2D]
DrawGeometry method
ID2D1RenderTarget.DrawGeometry
ID2D1RenderTarget::DrawGeometry
d2d1/ID2D1RenderTarget::DrawGeometry
direct2d.ID2D1RenderTarget_DrawGeometry
direct2d\ID2D1RenderTarget_DrawGeometry.htm
Direct2D
319b2680-34f8-4e00-985e-47ff87115794
12/05/2018
DrawGeometry, DrawGeometry method [Direct2D], DrawGeometry method [Direct2D],ID2D1RenderTarget interface, ID2D1RenderTarget interface [Direct2D],DrawGeometry method, ID2D1RenderTarget.DrawGeometry, ID2D1RenderTarget::DrawGeometry, d2d1/ID2D1RenderTarget::DrawGeometry, direct2d.ID2D1RenderTarget_DrawGeometry
d2d1.h
Windows
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps \| UWP apps]
D2d1.lib
D2d1.dll
Windows
19H1
ID2D1RenderTarget::DrawGeometry
d2d1/ID2D1RenderTarget::DrawGeometry
c++
APIRef
kbSyntax
COM
D2d1.dll
ID2D1RenderTarget.DrawGeometry

ID2D1RenderTarget::DrawGeometry

-description

Draws the outline of the specified geometry using the specified stroke style.

-parameters

-param geometry [in]

Type: ID2D1Geometry*

The geometry to draw.

-param brush [in]

Type: ID2D1Brush*

The brush used to paint the geometry's stroke.

-param strokeWidth

Type: FLOAT

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.

-param strokeStyle [in, optional]

Type: ID2D1StrokeStyle*

The style of stroke to apply to the geometry's outline, or NULL to paint a solid stroke.

-remarks

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.

Examples

For an example, see How to Draw and Fill a Complex Shape.

-see-also

Geometries

Geometries Overview

ID2D1RenderTarget