質問

System.Windows.Controls.Imageのソースを設定する方法ソースがSystem.Windows.Interop.interopbitmapの型の場合 下の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
.

ありがとう

役に立ちましたか?

解決

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

REF:

http://msdn.microsoft.com/ en-us/library/system.windows.Interop.Interopbitmap.aspx

Interopbitmap to bitmapimage

> http://msdn.microsoft..com / ja-us / library / system.windows.controls.image.Source.aspx

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top