Class SolidBrush
Represents a SolidBrush which is used for drawing on a Graphics surface.
Inherited Members
Namespace: GameOverlay.Drawing
Assembly: GameOverlay.dll
Syntax
public class SolidBrush : IDisposable, IBrush
Constructors
| Improve this Doc View SourceSolidBrush(RenderTarget)
Initializes a new SolidBrush for the given Graphics device using a transparent Color.
Declaration
public SolidBrush(RenderTarget renderTarget)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Direct2D1.RenderTarget | renderTarget | A Graphics device. |
SolidBrush(RenderTarget, Color)
Initializes a new SolidBrush for the given Graphics device using the given Color.
Declaration
public SolidBrush(RenderTarget renderTarget, Color color)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Direct2D1.RenderTarget | renderTarget | A Graphics device. |
Color | color | A Color structure including the color components for this SolidBrush. |
Properties
| Improve this Doc View SourceBrush
Gets or sets the underlying Brush.
Declaration
public Brush Brush { get; set; }
Property Value
Type | Description |
---|---|
SharpDX.Direct2D1.Brush |
Color
Gets or sets the Color of the underlying Brush.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
| Improve this Doc View SourceDispose()
Releases all resources used by this SolidBrush.
Declaration
public void Dispose()
Dispose(Boolean)
Releases all resources used by this SolidBrush.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | A Boolean value indicating whether this is called from the destructor. |
Equals(SolidBrush)
Returns a value indicating whether two specified instances of SolidBrush represent the same value.
Declaration
public bool Equals(SolidBrush value)
Parameters
Type | Name | Description |
---|---|---|
SolidBrush | value | An object to compare to this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Equals(SolidBrush, SolidBrush)
Returns a value indicating whether two specified instances of SolidBrush represent the same value.
Declaration
public static bool Equals(SolidBrush left, SolidBrush right)
Parameters
Type | Name | Description |
---|---|---|
SolidBrush | left | The first object to compare. |
SolidBrush | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |
Equals(Object)
Returns a value indicating whether this instance and a specified Object represent the same type and value.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Overrides
| Improve this Doc View SourceFinalize()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
Declaration
protected void Finalize()
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer hash code. |
Overrides
| Improve this Doc View SourceToString()
Converts this SolidBrush to a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The string representation of this SolidBrush. |
Overrides
Operators
| Improve this Doc View SourceImplicit(SolidBrush to SolidColorBrush)
Converts a SolidBrush to a SharpDX SolidColorBrush-
Declaration
public static implicit operator SolidColorBrush(SolidBrush brush)
Parameters
Type | Name | Description |
---|---|---|
SolidBrush | brush | A SolidBrush. |
Returns
Type | Description |
---|---|
SharpDX.Direct2D1.SolidColorBrush |