WPF: la sorgente di immagine è System.Windows.Interop.Interopbitmap
-
12-11-2019 - |
Domanda
Come impostare la fonte di System.Windows.Controls.Immagine se la sorgente è un tipo di sistema.Windows.Interop.Interopbitmap? Informazioni intertopbitmap qui sotto:
{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
.
Grazie
Soluzione
Sembra che InteropBitmap
eredita da ImageSource
già.Dovresti essere in grado di fare myImage.Source = myInteropbitmap;
?
Rif:
http://msdn.microsoft.com/en-us/library/system.windows.interop.interopbitmap.aspx
http://msdn.microsoft.com / en-us / biblioteca / system.windows.controls.image.source.aspx
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow