public class LinearGradientBrush extends Object
The linear gradient brush. The LinearGradientBrush element is used to specify a linear gradient brush along a vector. Fills a region with a linear gradient.
| Constructor and Description |
|---|
LinearGradientBrush()
Initializes a new instance of the
LinearGradientBrush class. |
| Modifier and Type | Method and Description |
|---|---|
String |
getColorInterpolationMode()
Gets or sets the color interpolation mode.
|
String |
getEndPoint()
Gets or sets the end point.
|
GradientStop[] |
getLinearGradientBrushGradientStops()
Gets or sets the linear gradient brush gradient stops.
|
Transform |
getLinearGradientBrushTransform()
Gets or sets the linear gradient brush transform.
|
String |
getMappingMode()
Gets or sets the mapping mode.
|
double |
getOpacity()
Gets or sets the opacity.
|
String |
getSpreadMethod()
Gets or sets the spread method.
|
String |
getStartPoint()
Gets or sets the start point.
|
String |
getTransform()
Gets or sets the transform.
|
void |
setColorInterpolationMode(String value)
Gets or sets the color interpolation mode.
|
void |
setEndPoint(String value)
Gets or sets the end point.
|
void |
setLinearGradientBrushGradientStops(GradientStop[] value)
Gets or sets the linear gradient brush gradient stops.
|
void |
setLinearGradientBrushTransform(Transform value)
Gets or sets the linear gradient brush transform.
|
void |
setMappingMode(String value)
Gets or sets the mapping mode.
|
void |
setOpacity(double value)
Gets or sets the opacity.
|
void |
setSpreadMethod(String value)
Gets or sets the spread method.
|
void |
setStartPoint(String value)
Gets or sets the start point.
|
void |
setTransform(String value)
Gets or sets the transform.
|
public LinearGradientBrush()
Initializes a new instance of the LinearGradientBrush class.
public final Transform getLinearGradientBrushTransform()
Gets or sets the linear gradient brush transform. Describes the matrix transformation applied to the coordinate space of the brush. The Transform property is concatenated with the current effective render transform to yield an effective render transform local to the brush. The start point and end point are transformed using the local effective render transform.
public final void setLinearGradientBrushTransform(Transform value)
Gets or sets the linear gradient brush transform. Describes the matrix transformation applied to the coordinate space of the brush. The Transform property is concatenated with the current effective render transform to yield an effective render transform local to the brush. The start point and end point are transformed using the local effective render transform.
public final GradientStop[] getLinearGradientBrushGradientStops()
Gets or sets the linear gradient brush gradient stops. Holds a sequence of GradientStop elements.
public final void setLinearGradientBrushGradientStops(GradientStop[] value)
Gets or sets the linear gradient brush gradient stops. Holds a sequence of GradientStop elements.
public final double getOpacity()
Gets or sets the opacity. Defines the uniform transparency of the linear gradient. Values range from 0 (fully transparent) to 1 (fully opaque), inclusive.Values outside of this range are invalid.
public final void setOpacity(double value)
Gets or sets the opacity. Defines the uniform transparency of the linear gradient. Values range from 0 (fully transparent) to 1 (fully opaque), inclusive.Values outside of this range are invalid.
public final String getColorInterpolationMode()
Gets or sets the color interpolation mode. Specifies the gamma function for color interpolation. The gamma adjustment should not be applied to the alpha component, if specified.
public final void setColorInterpolationMode(String value)
Gets or sets the color interpolation mode. Specifies the gamma function for color interpolation. The gamma adjustment should not be applied to the alpha component, if specified.
public final String getSpreadMethod()
Gets or sets the spread method. Describes how the brush should fill the content area outside of the primary, initial gradient area. Valid values are Pad, Reflect and Repeat.
public final void setSpreadMethod(String value)
Gets or sets the spread method. Describes how the brush should fill the content area outside of the primary, initial gradient area. Valid values are Pad, Reflect and Repeat.
public final String getMappingMode()
Gets or sets the mapping mode. Specifies that the start point and end point are defined in the effective coordinate space (includes the Transform attribute of the brush).
public final void setMappingMode(String value)
Gets or sets the mapping mode. Specifies that the start point and end point are defined in the effective coordinate space (includes the Transform attribute of the brush).
public final String getTransform()
Gets or sets the transform. Describes the matrix transformation applied to the coordinate space of the brush. The Transform property on a brush is concatenated with the current effective render transform to yield an effective render transform local to the brush. The start point and end point are transformed using the local effective render transform.
public final void setTransform(String value)
Gets or sets the transform. Describes the matrix transformation applied to the coordinate space of the brush. The Transform property on a brush is concatenated with the current effective render transform to yield an effective render transform local to the brush. The start point and end point are transformed using the local effective render transform.
public final String getStartPoint()
Gets or sets the start point. Specifies the starting point of the linear gradient.
public final void setStartPoint(String value)
Gets or sets the start point. Specifies the starting point of the linear gradient.
public final String getEndPoint()
Gets or sets the end point. Specifies the end point of the linear gradient. The linear gradient brush interpolates the colors from the start point to the end point, where the start point represents an offset of 0, and the EndPoint represents an offset of 1. The Offset attribute value specified in a GradientStop element relates to the 0 and 1 offsets defined by the start point and end point.
public final void setEndPoint(String value)
Gets or sets the end point. Specifies the end point of the linear gradient. The linear gradient brush interpolates the colors from the start point to the end point, where the start point represents an offset of 0, and the EndPoint represents an offset of 1. The Offset attribute value specified in a GradientStop element relates to the 0 and 1 offsets defined by the start point and end point.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.