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

NameTypeAccessDescription
kind: 'linear'ReadGets the kind.
x1: numberReadGets the x1.
y1: numberReadGets the y1.
x2: numberReadGets the x2.
y2: numberReadGets the y2.
stops: GradientStop[]ReadGets the stops.
extend: [boolean, boolean]ReadWhether to pad the ramp before the start and after the end.