LinearGradient
Overview
LinearGradient is a interface in Aspose.PDF FOSS for TypeScript.
An axial (linear) gradient: a colour ramp along the axis from (x1, y1) to (x2, y2), in the default user space of the content stream it paints into — see the /Matrix note on PageGraphics.setFillGradient.
Properties: extend, kind, stops, x1, x2, y1, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
kind | : 'linear' | Read | Gets the kind. |
x1 | : number | Read | Gets the x1. |
y1 | : number | Read | Gets the y1. |
x2 | : number | Read | Gets the x2. |
y2 | : number | Read | Gets the y2. |
stops | : GradientStop[] | Read | Gets the stops. |
extend | : [boolean, boolean] | Read | Whether to pad the ramp before the start and after the end. |