点击或拖拽改变大小

RAdapterCreateLinearGradientBrush 方法

Get linear gradient color brush from color1 to color2.

命名空间:  DSkin.Html.Adapters
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
protected abstract RBrush CreateLinearGradientBrush(
	RRect rect,
	RColor color1,
	RColor color2,
	double angle
)

参数

rect
类型:DSkin.Html.Adapters.EntitiesRRect
the rectangle to get the brush for
color1
类型:DSkin.Html.Adapters.EntitiesRColor
the start color of the gradient
color2
类型:DSkin.Html.Adapters.EntitiesRColor
the end color of the gradient
angle
类型:SystemDouble
the angle to move the gradient from start color to end color in the rectangle

返回值

类型:RBrush
linear gradient color brush instance
参见