CRenderTarget::DrawRectangle
繪製具有指定之維度和筆劃樣式的矩形外框。
void DrawRectangle(
const CD2DRectF& rect,
CD2DBrush* pBrush,
FLOAT fStrokeWidth = 1.0,
ID2D1StrokeStyle* strokeStyle = NULL
);
參數
rect
要繪製之矩形的維度 (以裝置獨立畫素為單位)pBrush
用來繪製矩形筆劃的筆刷。fStrokeWidth
大於或等於 0.0f 的值,這個值指定矩形筆劃的寬度。 筆劃位於矩形外框線中間。strokeStyle
要繪製的筆劃樣式,如果是 NULL,則繪製實心筆劃。
需求
**標頭檔:**afxrendertarget.h