VintaSoft Imaging .NET SDK 14.1: Documentation for .NET developer
Vintasoft.Imaging.Drawing.SkiaSharp Namespace / SkiaSharpLinearGradientBrush Class / SkiaSharpLinearGradientBrush Constructor(RectangleF,GradientStop[])
Syntax Exceptions Requirements SeeAlso
In This Topic
    SkiaSharpLinearGradientBrush Constructor(RectangleF,GradientStop[])
    In This Topic
    Initializes a new instance of the SkiaSharpLinearGradientBrush class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal rectangle
    A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
    As System.Drawing.RectangleF, _
    ByVal ParamArray gradientStops
    The gradient stops of the brush.
    () As Vintasoft.Imaging.Drawing.GradientStop _
    )

    Parameters

    rectangle
    A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
    gradientStops
    The gradient stops of the brush.
    Exceptions
    ExceptionDescription
    Thrown if gradientStops is null.
    Thrown if gradientStops length is less than 2.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also