Mam RenderTargetBitmap
, muszę go przekonwertować do BitmapImage
. Sprawdź poniższy kod.Konwersja RenderTargetBitmap do BitmapImage
RenderTargetBitmap bitMap = getRenderTargetBitmap();
Image image = new Image();// This is a Image
image.Source = bitMap;
W powyższym kodzie użyłem Image. Teraz potrzebuję użyć BitmapImage. Jak mogę to zrobić?
RenderTargetBitmap bitMap = getRenderTargetBitmap();
BitmapImage image = new BitmapImage();// This is a BitmapImage
// how to set bitMap as source of BitmapImage ?
Georges, muszę konwertować RenderTargetBitmap do BitmapImage. – sharmila
Możliwy duplikat: [RenderTargetBitmap do BitmapImage w WPF] (http://stackoverflow.com/questions/3361579/rendertargetbitmap-to-bitmapimage-in-wpf) – khellang
coś takiego: http://msdn.microsoft.com/en -us/library/aa969819.aspx – GeorgesD