标签:
---恢复内容开始---
画线:
virtual void DrawLine(
D2D1_POINT_2F point0,//起点
D2D1_POINT_2F point1,//终点
[in] ID2D1Brush *brush,
FLOAT strokeWidth = 1.0f,//线条粗细
[in, optional] ID2D1StrokeStyle *strokeStyle = NULL//可省略
) = 0;
椭圆:
struct D2D1_ELLIPSE {
D2D1_POINT_2F point;
FLOAT radiusX;
FLOAT radiusY;
};
矩形:
圆角矩形:
struct D2D1_ROUNDED_RECT {
D2D1_RECT_F rect;
FLOAT radiusX;
FLOAT radiusY;
};
画轮廓:
void DrawEllipse(
[ref] const D2D1_ELLIPSE &ellipse,
[in] ID2D1Brush *brush,
FLOAT strokeWidth = 1.0f,
[in, optional] ID2D1StrokeStyle *strokeStyle = NULL
);
void DrawRectangle(
[ref] const D2D1_RECT_F &rect,
[in] ID2D1Brush *brush,
FLOAT strokeWidth = 1.0f,
[in, optional] ID2D1StrokeStyle *strokeStyle = NULL
);
void DrawRoundedRectangle(
[ref] const D2D1_ROUNDED_RECT &roundedRect,
[in] ID2D1Brush *brush,
FLOAT strokeWidth = 1.0f,
[in, optional] ID2D1StrokeStyle *strokeStyle = NULL
);
填充:
void FillEllipse(
[ref] const D2D1_ELLIPSE &ellipse,
[in] ID2D1Brush *brush
);
void FillRectangle(
[ref] const D2D1_RECT_F &rect,
[in] ID2D1Brush *brush
);
void FillRoundedRectangle(
[ref] const D2D1_ROUNDED_RECT &roundedRect,
[in] ID2D1Brush *brush
);
---恢复内容结束---
标签:
原文地址:http://www.cnblogs.com/hxml/p/5184792.html