CD2DGeometry::Widen
在幾何由指定的矩陣使用指定的容限進行轉換和簡維之後,以指定的筆劃將幾何加寬,並將結果寫入 ID2D1SimplifiedGeometrySink。
BOOL Widen(
FLOAT strokeWidth,
ID2D1StrokeStyle* strokeStyle,
const D2D1_MATRIX_3X2_F& worldTransform,
ID2D1SimplifiedGeometrySink* geometrySink,
FLOAT flatteningTolerance = D2D1_DEFAULT_FLATTENING_TOLERANCE
) const;
參數
strokeWidth
要據以加寬幾何的數量。strokeStyle
要套用至幾何的筆劃樣式,或者為 NULL。worldTransform
要在加寬幾何後套用至該幾何的轉換。geometrySink
加寬幾何附加到的 ID2D1SimplifiedGeometrySink。flatteningTolerance
在幾何多邊形近似法中,點之間的距離上限。 值越小,產生的結果越精確,但執行過程也會比較慢。
傳回值
如果方法成功,它會傳回 TRUE。 否則,它會傳回 FALSE。
需求
**標頭檔:**afxrendertarget.h