ID2D1RenderTarget::DrawEllipse method

Draws the outline of an ellipse with the specified dimensions and stroke.

Overload list

Method Description
DrawEllipse(D2D1_ELLIPSE&,ID2D1Brush*,FLOAT,ID2D1StrokeStyle*) Draws the outline of the specified ellipse using the specified stroke style.
DrawEllipse(D2D1_ELLIPSE*,ID2D1Brush*,FLOAT,ID2D1StrokeStyle*) Draws the outline of the specified ellipse using the specified stroke style.

Syntax

void DrawEllipse(
  const D2D1_ELLIPSE *ellipse,
  ID2D1Brush         *brush,
  FLOAT              strokeWidth,
  ID2D1StrokeStyle   *strokeStyle
);

Parameters

ellipse

brush

strokeWidth

strokeStyle

Return Value

None

Remarks

The DrawEllipse method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawEllipse) failed, check the result returned by the ID2D1RenderTarget::EndDraw or ID2D1RenderTarget::Flush methods.

Examples

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

Requirements

   
Target Platform Windows
Header d2d1.h
Library D2d1.lib
DLL D2d1.dll

See Also

FillEllipse

ID2D1RenderTarget