示例#1
0
文件: Ball.cs 项目: LagManos/Enigma
 public void SetImage(BitmapImage source, int size, bool AllowDropping)
 {
     img = new OwnImage(AllowDropping);
     img.Source = source;
     img.Width = Size;
     img.Height = Size;
 }
示例#2
0
        public CodeBall(BitmapImage source, int size, MainWindow wnd, BitmapImage hidden = null)
        {
            this.Size = size;
            this.wnd = wnd;
            HiddenImage = new OwnImage(false);
            HiddenImage.Source = hidden;
            HiddenImage.Width = Size;
            HiddenImage.Height = Size;

            this.SetImage(source, size, false);
        }