CustomLineCap::SetWidthScale 方法 (gdiplusheaders.h)

CustomLineCap::SetWidthScale 方法设置缩放宽度的值。 这是相对于用于绘制线条的 宽度缩放自定义线条上限的量。 默认值 1.0 不会缩放行首。

语法

Status SetWidthScale(
  [in] REAL widthScale
);

参数

[in] widthScale

类型: IN REAL

实数,指定将用于缩放线条宽度的比例因子。

返回值

类型: 状态

如果方法成功,则返回 Ok,这是 Status 枚举的元素。

如果 方法失败,它将返回 Status 枚举的其他元素之一。

要求

要求
最低受支持的客户端 Windows XP、Windows 2000 Professional [仅限桌面应用]
最低受支持的服务器 Windows 2000 Server [仅限桌面应用]
目标平台 Windows
标头 gdiplusheaders.h (包括 Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

另请参阅

CustomLineCap

LineCap

Status