Example #1
0
 /// <summary>
 /// Creates a new <see cref="SharpDX.Direct2D1.SolidColorBrush"/> that has the specified color and opacity.
 /// </summary>
 /// <param name="renderTarget">an instance of <see cref = "SharpDX.Direct2D1.RenderTarget" /></param>
 /// <param name="color">The red, green, blue, and alpha values of the brush's color.</param>
 /// <param name="brushProperties">The base opacity of the brush.</param>
 public SolidColorBrush(RenderTarget renderTarget, SharpDX.Color4 color, SharpDX.Direct2D1.BrushProperties?brushProperties)
     : base(IntPtr.Zero)
 {
     renderTarget.CreateSolidColorBrush(color, brushProperties, this);
 }
Example #2
0
 /// <summary>	
 /// Creates a new <see cref="SharpDX.Direct2D1.SolidColorBrush"/> that has the specified color and opacity. 	
 /// </summary>	
 /// <param name="renderTarget">an instance of <see cref = "SharpDX.Direct2D1.RenderTarget" /></param>
 /// <param name="color">The red, green, blue, and alpha values of the brush's color.</param>
 /// <param name="brushProperties">The base opacity of the brush.</param>
 public SolidColorBrush(RenderTarget renderTarget, SharpDX.Color4 color, SharpDX.Direct2D1.BrushProperties? brushProperties)
     : base(IntPtr.Zero)
 {
     renderTarget.CreateSolidColorBrush(color, brushProperties, this);
 }