0

ソースがSystem.Windows.Interop.InteropBitmapのタイプである場合、System.Windows.Controls.Imageのソースを設定するにはどうすればよいですか?以下のInteropBitmap情報:

{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

ありがとうございました

4

1 に答える 1

1

すでにInteropBitmap継承しているようです。ImageSourceあなたはできるはずですmyImage.Source = myInteropbitmap;か?

参照:

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

于 2011-03-28T10:20:25.260 に答える