CRenderTarget::DrawGeometry

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

void DrawGeometry(
   CD2DGeometry* pGeometry,
   CD2DBrush* pBrush,
   FLOAT fStrokeWidth = 1.0,
   ID2D1StrokeStyle* strokeStyle = NULL
);

Parameters

  • pGeometry
    The geometry to draw.

  • pBrush
    The brush used to paint the geometry's stroke.

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

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

Requirements

Header: afxrendertarget.h

See Also

Reference

CRenderTarget Class