|
@@ -1,15 +1,14 @@
|
|
|
-namespace Perspex.Direct2D1.Media
|
|
|
|
|
-{
|
|
|
|
|
- using System;
|
|
|
|
|
- using System.Collections.Generic;
|
|
|
|
|
- using System.Linq;
|
|
|
|
|
- using System.Text;
|
|
|
|
|
- using System.Threading.Tasks;
|
|
|
|
|
|
|
+// -----------------------------------------------------------------------
|
|
|
|
|
+// <copyright file="SolidColorBrushImpl.cs" company="Steven Kirk">
|
|
|
|
|
+// Copyright 2015 MIT Licence. See licence.md for more information.
|
|
|
|
|
+// </copyright>
|
|
|
|
|
+// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
+namespace Perspex.Direct2D1.Media
|
|
|
|
|
+{
|
|
|
public class SolidColorBrushImpl : BrushImpl
|
|
public class SolidColorBrushImpl : BrushImpl
|
|
|
{
|
|
{
|
|
|
- public SolidColorBrushImpl(Perspex.Media.SolidColorBrush brush, SharpDX.Direct2D1.RenderTarget target, Size destinationSize)
|
|
|
|
|
- : base(brush, target, destinationSize)
|
|
|
|
|
|
|
+ public SolidColorBrushImpl(Perspex.Media.SolidColorBrush brush, SharpDX.Direct2D1.RenderTarget target)
|
|
|
{
|
|
{
|
|
|
this.PlatformBrush = new SharpDX.Direct2D1.SolidColorBrush(target, brush?.Color.ToDirect2D() ?? new SharpDX.Color4());
|
|
this.PlatformBrush = new SharpDX.Direct2D1.SolidColorBrush(target, brush?.Color.ToDirect2D() ?? new SharpDX.Color4());
|
|
|
}
|
|
}
|