- Get ImageSource from Bitmap?
- this.Background = new ImageBrush(new BitmapImage(bmp));
- public static Brush CreateBrushFromBitmap(Bitmap bmp)
- {
- return new ImageBrush(Imaging.CreateBitmapSourceFromHBitmap(bmp.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()));
- }