Expand Minimize
This topic has not yet been rated - Rate this topic

ID2D1RenderTarget::DrawGeometry method

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

Syntax


virtual void DrawGeometry(
  [in]            ID2D1Geometry *geometry,
  [in]            ID2D1Brush *brush,
  FLOAT strokeWidth = 1.0f,
  [in, optional]  ID2D1StrokeStyle *strokeStyle = NULL
) = 0;

Parameters

geometry [in]

Type: ID2D1Geometry*

The geometry to draw.

brush [in]

Type: ID2D1Brush*

The brush used to paint the geometry's stroke.

strokeWidth

Type: FLOAT

The thickness of the geometry's stroke. The stroke is centered on the geometry's outline.

strokeStyle [in, optional]

Type: ID2D1StrokeStyle*

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

Return value

This method does not return a value.

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.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

D2d1.h

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1RenderTarget
Geometries
Geometries Overview

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.