[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.SolidColorBrush

Class SolidColorBrush

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1SolidColorBrush

[Guid("2cd906a9-12e2-11dc-9fed-001143a055f9")]
public class SolidColorBrush : Brush, IDisposable, IUnknown
Inheritance
object
SolidColorBrush
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

SolidColorBrush(IntPtr)

Initializes a new instance of the SolidColorBrush class.

public SolidColorBrush(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(RenderTarget, ColorF, BrushProperties?)

Creates a new SolidColorBrush that has the specified color and opacity.

public static SolidColorBrush Create(RenderTarget renderTarget, ColorF color, BrushProperties? brushProperties)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

color ColorF

The red, green, blue, and alpha values of the brush's color.

brushProperties BrushProperties?

The base opacity of the brush.

Returns

SolidColorBrush

Create(RenderTarget, ColorF)

Creates a new SolidColorBrush that has the specified color and opacity.

public static SolidColorBrush Create(RenderTarget renderTarget, ColorF color)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

color ColorF

The red, green, blue, and alpha values of the brush's color.

Returns

SolidColorBrush

GetColor()

D2D_COLOR_F ID2D1SolidColorBrush::GetColor()

public ColorF GetColor()

Returns

ColorF

SetColor(ColorF)

void ID2D1SolidColorBrush::SetColor([In] const D2D_COLOR_F* color)

public void SetColor(ColorF color)

Parameters

color ColorF

Operators

explicit operator SolidColorBrush(IntPtr)

Performs an explicit conversion from System.IntPtr to SolidColorBrush.

public static explicit operator SolidColorBrush(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

SolidColorBrush