IXpsRasterizer::SetMinimalLineWidth 方法(xpsrassvc.h)

SetMinimalLineWidth 方法允许调用方设置设备可以呈现的线条的最小粗细(以像素为单位)。 如果未调用 SetMinimalLineWidth,则默认最小厚度值为 1 像素。 此最小厚度值仅适用于 XPS 规范 v1.0,秒 11.6.12 中定义的名义宽度笔划。 IXpsRasterizer 要求使用其 StrokeThickness 属性指定的宽度或 SetMinimalLineWidth 设置的像素值(如果未调用 SetMinimalLineWidth,则为 1 像素),以较大者为准。

语法

HRESULT SetMinimalLineWidth(
  [in] INT width
);

参数

[in] width

设备能够呈现的线条的最小粗细(以像素为单位)。 该值应大于 1。

返回值

SetMinimalLineWidth 始终返回S_OK。

言论

Windows 7 及更高版本中支持此方法。 Windows 7 之前的 Windows作系统版本不支持它。

要求

要求 价值
最低支持的客户端 在 Windows 7 及更高版本的 Windows作系统中可用。
目标平台 桌面
标头 xpsrassvc.h

另请参阅

IWICBitmap

IXpsRasterizationFactory::CreateRasterizer

IXpsRasterizer

IXpsRasterizer::RasterizeRect

IXpsRasterizerNotificationCallback