Interface IBrushLoader
Loads a brush
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IBrushLoader
Methods
| Improve this Doc View SourceLoadHatchBrush(HatchStyle, Color, Color)
Declaration
IBrush LoadHatchBrush(HatchStyle hatchStyle, Color color, Color backgroundColor)
Parameters
| Type | Name | Description |
|---|---|---|
| HatchStyle | hatchStyle | |
| Color | color | |
| Color | backgroundColor |
Returns
| Type | Description |
|---|---|
| IBrush |
LoadLinearBrush(Color[], IBlend, IColorBlend, ITransformMatrix, WrapMode, Boolean)
Loads a linear color brush (this is currently only supported on desktop).
Declaration
IBrush LoadLinearBrush(Color[] linearColors, IBlend blend, IColorBlend interpolationColors, ITransformMatrix transform, WrapMode wrapMode, bool gammaCorrection)
Parameters
| Type | Name | Description |
|---|---|---|
| Color[] | linearColors | Linear colors. |
| IBlend | blend | Blend. |
| IColorBlend | interpolationColors | Interpolation colors. |
| ITransformMatrix | transform | Transform. |
| WrapMode | wrapMode | Wrap mode. |
| System.Boolean | gammaCorrection | If set to |
Returns
| Type | Description |
|---|---|
| IBrush | The linear brush. |
LoadLinearBrush(Point, Point, Color, Color)
Loads a linear color brush (this is currently only supported on desktop).
Declaration
IBrush LoadLinearBrush(Point point1, Point point2, Color color1, Color color2)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point1 | Point1. |
| Point | point2 | Point2. |
| Color | color1 | Color1. |
| Color | color2 | Color2. |
Returns
| Type | Description |
|---|---|
| IBrush | The linear brush. |
LoadPathsGradientBrush(Color, PointF, IBlend, PointF, Color[], IColorBlend, ITransformMatrix, WrapMode)
Declaration
IBrush LoadPathsGradientBrush(Color centerColor, PointF centerPoint, IBlend blend, PointF focusScales, Color[] surroundColors, IColorBlend interpolationColors, ITransformMatrix transform, WrapMode wrapMode)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | centerColor | |
| PointF | centerPoint | |
| IBlend | blend | |
| PointF | focusScales | |
| Color[] | surroundColors | |
| IColorBlend | interpolationColors | |
| ITransformMatrix | transform | |
| WrapMode | wrapMode |
Returns
| Type | Description |
|---|---|
| IBrush |
LoadPathsGradientBrush(Point[])
Declaration
IBrush LoadPathsGradientBrush(Point[] points)
Parameters
| Type | Name | Description |
|---|---|---|
| Point[] | points |
Returns
| Type | Description |
|---|---|
| IBrush |
LoadSolidBrush(Color)
Loads a solid color brush.
Declaration
IBrush LoadSolidBrush(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color | Color. |
Returns
| Type | Description |
|---|---|
| IBrush | The solid brush. |