ID2D1RenderTarget::CreateLinearGradientBrush 方法

为具有线性渐变的绘制区域创建 ID2D1LinearGradientBrush 对象。

重载列表

方法 Description
CreateLinearGradientBrush(D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES>,ID2D1GradientStopCollection*,ID2D1LinearGradientBrush**) 创建 ID2D1LinearGradientBrush ,其中包含指定的渐变停止点、没有转换,并且基不透明度为 1.0。
CreateLinearGradientBrush(D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES&,D2D1_BRUSH_PROPERTIES&;ID2D1GradientStopCollection*,ID2D1LinearGradientBrush**) 创建 ID2D1LinearGradientBrush ,其中包含指定的渐变停止点,并具有指定的转换和基不透明度。
CreateLinearGradientBrush(D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES*,D2D1_BRUSH_PROPERTIES*,ID2D1GradientStopCollection*,ID2D1LinearGradientBrush**) 创建 ID2D1LinearGradientBrush ,其中包含指定的渐变停止点,并具有指定的转换和基不透明度。

示例

有关演示如何创建渐变停止点集合并将其用于定义线性渐变的示例,请参阅 如何创建线性渐变画笔

Requirements

要求 价值
Header
D2d1.h
Library
D2d1.lib
DLL
D2d1.dll

另见

ID2D1RenderTarget

CreateGradientStopCollection

ID2D1GradientStopCollection

ID2D1LinearGradientBrush

ID2D1RadialGradientBrush

如何创建线性渐变画笔

画笔概述