public class SolidColorBrush extends Object
The solid color brush. The SolidColorBrush element is used to fill defined geometric regions with a solid color. If there is an alpha component of the color, it is combined in a multiplicative way with the corresponding Opacity attribute.
| Constructor and Description |
|---|
SolidColorBrush()
Initializes a new instance of the
SolidColorBrush class. |
| Modifier and Type | Method and Description |
|---|---|
String |
getColor()
Gets or sets the color.
|
double |
getOpacity()
Gets or sets the opacity.
|
void |
setColor(String value)
Gets or sets the color.
|
void |
setOpacity(double value)
Gets or sets the opacity.
|
public SolidColorBrush()
Initializes a new instance of the SolidColorBrush class.
public final double getOpacity()
Gets or sets the opacity. Defines the uniform transparency of the brush fill. 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 brush fill. Values range from 0 (fully transparent) to 1 (fully opaque), inclusive. Values outside of this range are invalid.
public final String getColor()
Gets or sets the color. Specifies the color for filled elements.
public final void setColor(String value)
Gets or sets the color. Specifies the color for filled elements.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.