[]
ID2D1SolidColorBrush
[Guid("2cd906a9-12e2-11dc-9fed-001143a055f9")]
public class SolidColorBrush : Brush, IDisposable, IUnknown
Initializes a new instance of the SolidColorBrush class.
public SolidColorBrush(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Creates a new SolidColorBrush that has the specified color and opacity.
public static SolidColorBrush Create(RenderTarget renderTarget, ColorF color, BrushProperties? brushProperties)
renderTarget
RenderTargetan instance of RenderTarget
color
ColorFThe red, green, blue, and alpha values of the brush's color.
brushProperties
BrushProperties?The base opacity of the brush.
Creates a new SolidColorBrush that has the specified color and opacity.
public static SolidColorBrush Create(RenderTarget renderTarget, ColorF color)
renderTarget
RenderTargetan instance of RenderTarget
color
ColorFThe red, green, blue, and alpha values of the brush's color.
D2D_COLOR_F ID2D1SolidColorBrush::GetColor()
public ColorF GetColor()
void ID2D1SolidColorBrush::SetColor([In] const D2D_COLOR_F* color)
public void SetColor(ColorF color)
color
ColorFPerforms an explicit conversion from System.IntPtr to SolidColorBrush.
public static explicit operator SolidColorBrush(IntPtr nativePointer)
nativePointer
System.IntPtr