예제 #1
0
        public BitmapSource ConvertToSource(Bitmap map)
        {
            IntPtr       ip = map.GetHbitmap();
            BitmapSource bs;

            try
            {
                bs = Imaging.CreateBitmapSourceFromHBitmap(ip, IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions());
            }
            finally
            {
                SpriteView.DeleteObject(ip);
            }

            return(bs);
        }
예제 #2
0
 public AnimationSelectWindow(SpriteView spriteView)
 {
     SpriteView = spriteView;
     InitializeComponent();
 }