示例#1
0
        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);
        }
示例#2
0
 public DUIBitmapBrush(Image image, DUIExtendMode dUIExtendMode = DUIExtendMode.Wrap, float opacity = 1F)
     : this(DUIImage.FromImage(image), dUIExtendMode, opacity)
 {
 }
示例#3
0
 public DUIBitmapBrush(DUIImage image, DUIExtendMode dUIExtendMode = DUIExtendMode.Wrap, float opacity = 1F)
 {
     this.image         = image;
     this.dUIExtendMode = dUIExtendMode;
     this.opacity       = opacity;
 }