XpsGradientBrush

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

public abstract class XpsGradientBrush extends XpsTransformableBrush

Class incapsulating common features of LinerGradientBrush and RadialGradientBrush elements.

Methods

MethodDescription
getGradientStops()Returns list of gradient stops that comprise the gradient.
setGradientStops(List value)Sets list of gradient stops that comprise the gradient.
getColorInterpolationMode()Returns value specifying the gamma function for color interpolation.
setColorInterpolationMode(XpsColorInterpolationMode value)Sets value specifying the gamma function for color interpolation.
getSpreadMethod()Returns value describing how the brush should fill the content area outside of the primary, initial gradient area.
setSpreadMethod(XpsSpreadMethod value)Sets value describing how the brush should fill the content area outside of the primary, initial gradient area.

getGradientStops()

public List<XpsGradientStop> getGradientStops()

Returns list of gradient stops that comprise the gradient.

Returns: java.util.List<com.aspose.xps.XpsGradientStop> - List of gradient stops that comprise the gradient.

setGradientStops(List value)

public void setGradientStops(List<XpsGradientStop> value)

Sets list of gradient stops that comprise the gradient.

Parameters:

ParameterTypeDescription
valuejava.util.List<com.aspose.xps.XpsGradientStop>List of gradient stops that comprise the gradient.

getColorInterpolationMode()

public XpsColorInterpolationMode getColorInterpolationMode()

Returns value specifying the gamma function for color interpolation. The gamma adjustment should not be applied to the alpha component, if specified.

Returns: XpsColorInterpolationMode - Value specifying the gamma function for color interpolation.

setColorInterpolationMode(XpsColorInterpolationMode value)

public void setColorInterpolationMode(XpsColorInterpolationMode value)

Sets value specifying the gamma function for color interpolation. The gamma adjustment should not be applied to the alpha component, if specified.

Parameters:

ParameterTypeDescription
valueXpsColorInterpolationModeValue specifying the gamma function for color interpolation.

getSpreadMethod()

public XpsSpreadMethod getSpreadMethod()

Returns value describing how the brush should fill the content area outside of the primary, initial gradient area.

Returns: XpsSpreadMethod - Value describing how the brush should fill the content area outside of the primary, initial gradient area.

setSpreadMethod(XpsSpreadMethod value)

public void setSpreadMethod(XpsSpreadMethod value)

Sets value describing how the brush should fill the content area outside of the primary, initial gradient area.

Parameters:

ParameterTypeDescription
valueXpsSpreadMethodValue describing how the brush should fill the content area outside of the primary, initial gradient area.