DsPdfJS API - v9.1.0
    Preparing search index...

    Type Alias LinearGradientBrushProperties

    Provides settings for creating a linear gradient brush.

    type LinearGradientBrushProperties = {
        endColor: Color;
        endPoint?: Point;
        gradientStops?: GradientStop[] | null;
        startColor: Color;
        startPoint?: Point;
    }
    Index

    Properties

    endColor: Color

    The ending gradient color.

    endPoint?: Point

    The end point of the current linear gradient brush. (0, 0) is the top-left corner, (1, 1) is the bottom-right corner. The default is (1, 0.5).

    gradientStops?: GradientStop[] | null

    The array of gradient stops.

    startColor: Color

    The starting gradient color.

    startPoint?: Point

    The start point of the current linear gradient brush. (0, 0) is the top-left corner, (1, 1) is the bottom-right corner. The default is (0, 0.5).