com.aspose.xps

Class XpsGradientStop

  • All Implemented Interfaces:
    Iterable<XpsElement>


    public final class XpsGradientStop
    extends XpsElement

    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.

    • Method Detail

      • getColor

        public XpsColor getColor()

        Returns the gradient stop color.

        Returns:
        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:
        The gradient offset.
      • deepClone

        public XpsGradientStop deepClone()

        Clones this gradient stop.

        Returns:
        Clone of this gradient stop.
      • clonePropertyValues

        public void clonePropertyValues(XpsElement element)