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

Était-ce utile?

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

Interopbitmap à bitmapimage

http://msdn.microsoft.com/en-us/library/system.windows.controls.image.source.aspx

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top