WPF: Image Source est System.windows.interop.interopbitmap
-
12-11-2019 - |
Question
Comment définir la source de System.Windows.Controls.image si la source est un type de System.windows.interop.Interopbitmap? Informations interopbitmap ci-dessous:
{System.Windows.Interop.InteropBitmap}
[System.Windows.Interop.InteropBitmap]: {System.Windows.Interop.InteropBitmap}
base {System.Windows.Media.ImageSource}: {System.Windows.Interop.InteropBitmap}
DpiX: 96.0
DpiY: 96.0
Format: {Bgra32}
Height: 851.0
IsDownloading: false
Metadata: null
Palette: null
PixelHeight: 851
PixelWidth: 900
Width: 900.0
Merci
La solution
On dirait InteropBitmap
hériter de ImageSource
déjà. Tu devrais pouvoir faire myImage.Source = myInteropbitmap;
?
Réf:
http://msdn.microsoft.com/en-us/library/system.windows.interop.interopbitmap.aspx
http://msdn.microsoft.com/en-us/library/system.windows.controls.image.source.aspx
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow