WPF:Image SourceはSystem.Windows.Interop.interopbitmap.
-
12-11-2019 - |
質問
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
> http://msdn.microsoft..com / ja-us / library / system.windows.controls.image.Source.aspx
所属していません StackOverflow