Method CreateLinearGradientBrush
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.Core.dll
CreateLinearGradientBrush(IDeviceContext, Point2Float, Point2Float, IGradientStopCollection, float, in Matrix3x2Float?)
public static ILinearGradientBrush CreateLinearGradientBrush(this IDeviceContext deviceContext, Point2Float startPoint, Point2Float endPoint, IGradientStopCollection gradientStopCollection, float opacity = 1, in Matrix3x2Float? transform = null)
Parameters
deviceContext
IDeviceContextstartPoint
Point2FloatendPoint
Point2FloatgradientStopCollection
IGradientStopCollectionopacity
floattransform
Matrix3x2Float?