WPF:Bildquelle ist System.Windows.Interoperabilität.InteropBitmap
-
12-11-2019 - |
Frage
So legen Sie die Quelle des Systems fest.Windows.Steuerelemente.Bild, wenn die Quelle ein Systemtyp ist.Windows.Interoperabilität.InteropBitmap?InteropBitmap-Informationen unten:
{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
Danke
Lösung
Es sieht aus wie InteropBitmap
erbt von ImageSource
bereits.Sie sollten in der Lage sein zu tun myImage.Source = myInteropbitmap;
?
Ref:
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
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow