Table of Contents

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 IDeviceContext
startPoint Point2Float
endPoint Point2Float
gradientStopCollection IGradientStopCollection
opacity float
transform Matrix3x2Float?

Returns

ILinearGradientBrush