XpsGradientStop

Inheritance: java.lang.Object, com.aspose.xps.XpsObject

public final class XpsGradientStop extends XpsObject

Class incapsulating GradientStop element features. This element is used by both the LinearGradientBrush and RadialGradientBrush elements to define the location and range of color progression for rendering a gradient.

Methods

MethodDescription
getColor()Returns the gradient stop color.
getOffset()Returns the gradient offset.
deepClone()Clones this gradient stop.

getColor()

public XpsColor getColor()

Returns the gradient stop color.

Returns: XpsColor - The gradient stop color.

getOffset()

public float getOffset()

Returns the gradient offset. The offset indicates a point along the progression of the gradient at which a color is specified. Colors between gradient offsets in the progression are interpolated.

Returns: float - The gradient offset.

deepClone()

public XpsGradientStop deepClone()

Clones this gradient stop.

Returns: XpsGradientStop - Clone of this gradient stop.