public static SharpDX.Direct2D1.ExtendMode ToExtendMode(DUIExtendMode dUIExtendMode) { switch (dUIExtendMode) { case DUIExtendMode.Clamp: return(SharpDX.Direct2D1.ExtendMode.Clamp); case DUIExtendMode.Mirror: return(SharpDX.Direct2D1.ExtendMode.Mirror); case DUIExtendMode.Wrap: return(SharpDX.Direct2D1.ExtendMode.Wrap); } return(SharpDX.Direct2D1.ExtendMode.Wrap); }
public DUIBitmapBrush(Image image, DUIExtendMode dUIExtendMode = DUIExtendMode.Wrap, float opacity = 1F) : this(DUIImage.FromImage(image), dUIExtendMode, opacity) { }
public DUIBitmapBrush(DUIImage image, DUIExtendMode dUIExtendMode = DUIExtendMode.Wrap, float opacity = 1F) { this.image = image; this.dUIExtendMode = dUIExtendMode; this.opacity = opacity; }