StiBrush Class
Namespace: Stimulsoft.Base.Drawing
Inheritance
Implements: ICloneable
Properties
| Property | Type | Description |
|---|---|---|
| Ident | StiBrushIdent |
Methods
| Method | Returns | Description |
|---|---|---|
| Clone | object | Creates a new object that is a copy of the current instance. |
Dark static |
StiBrush | |
| Equals | bool | |
GetBrush static (+2 overloads) |
Brush | Returns the gdi brush from the report brush. |
| GetHashCode | int | |
| GetImage | Image | |
IsEmpty static |
bool | Returns true if this brush is empty - brush is null or StiEmptyBrush. |
IsTransparent static |
bool | Returns true if this brush is transparent - brush is null, empty or solid and color is transparent. |
Light static |
StiBrush | |
LoadFromJson static |
StiBrush | |
ToColor static |
Color | Transform a brush into a color. |
Method Details
Clone
Clone(): object
Creates a new object that is a copy of the current instance.
Returns object — A new object that is a copy of this instance.
Dark static
Dark(baseBrush: StiBrush, value: byte): StiBrush
Parameters
- baseBrush (StiBrush)
- value (byte)
Returns StiBrush
Equals
Equals(obj: object): bool
Parameters
- obj (object)
Returns bool
GetBrush static
GetBrush(brush: StiBrush, rect: Rectangle): Brush
Returns the gdi brush from the report brush.
Parameters
- brush (StiBrush) — Report brush.
- rect (Rectangle) — Rectangle for gradient.
Returns Brush — Gdi brush.
GetBrush(brush: StiBrush, rect: RectangleF): Brush
Returns the gdi brush from the report brush.
Parameters
- brush (StiBrush) — Report brush.
- rect (RectangleF) — Rectangle for gradient.
Returns Brush — Gdi brush.
GetBrush(brush: StiBrush, rect: RectangleD): Brush
Returns the standard brush from the report brush.
Parameters
- brush (StiBrush) — Report brush.
- rect (RectangleD) — Rectangle for gradient.
Returns Brush — Gdi brush.
GetHashCode
GetHashCode(): int
Returns int
GetImage
GetImage(width: int, height: int): Image
Parameters
- width (int)
- height (int)
Returns Image
IsEmpty static
IsEmpty(brush: StiBrush): bool
Returns true if this brush is empty - brush is null or StiEmptyBrush.
Parameters
- brush (StiBrush)
Returns bool
IsTransparent static
IsTransparent(brush: StiBrush): bool
Returns true if this brush is transparent - brush is null, empty or solid and color is transparent.
Parameters
- brush (StiBrush)
Returns bool
Light static
Light(baseBrush: StiBrush, value: byte): StiBrush
Parameters
- baseBrush (StiBrush)
- value (byte)
Returns StiBrush
LoadFromJson static
LoadFromJson(jObject: JObject): StiBrush
Parameters
- jObject (JObject)
Returns StiBrush
ToColor static
ToColor(brush: StiBrush): Color
Transform a brush into a color.
Parameters
- brush (StiBrush) — Brush for converting.
Returns Color — Converted color.