C#, WPF, local resouce bitmap to imagesource« Wróć do listy pytań
example
|
▲ ▼ |
var handle = Properties.Resources.MY_BITMAP.GetHbitmap(); var bitmapImageSource = Imaging.CreateBitmapSourceFromHBitmap(handle, IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); img_timer.Source = bitmapImageSource; |