public class GradientStop extends Object
The gradient stop. The GradientStop element is used by both the LinearGradientBrush and RadialGradientBrush elements to define the location and range of color progression for rendering a gradient. For linear gradient brushes, the offset value of 0.0 is mapped to the start point of the gradient, and the offset value of 1.0 is mapped to the end point. Intermediate offset values are interpolated between these two points to determine their location. For radial gradient brushes, the offset value of 0.0 is mapped to the gradient origin location. The offset value of 1.0 is mapped to the circumference of the ellipse as determined by the center, x radius, and y radius.Offsets between 0.0 and 1.0 are positioned at a location interpolated between these points.
| Constructor and Description |
|---|
GradientStop() |
| Modifier and Type | Method and Description |
|---|---|
String |
getColor()
Gets or sets the color.
|
double |
getOffset()
Gets or sets the offset.
|
void |
setColor(String value)
Gets or sets the color.
|
void |
setOffset(double value)
Gets or sets the offset.
|
public final String getColor()
Gets or sets the color. Specifies the gradient stop color.
public final void setColor(String value)
Gets or sets the color. Specifies the gradient stop color.
public final double getOffset()
Gets or sets the offset. Specifies 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.
public final void setOffset(double value)
Gets or sets the offset. Specifies 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.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.