BitmapImage bitmapImage = new BitmapImage(new Uri("arka_projects_as_logo.png", UriKind.Relative));
Image uiElement = new Image() { Source = bitmapImage };
ScaleTransform t = new ScaleTransform() { ScaleX = 0.2, ScaleY = 0.2 };
WriteableBitmap writeableBitmap = new WriteableBitmap(uiElement,t);
我想将此转换的结果(writeableBitmap)插入到 System.Windows.Controls.Image 中。当我这样做时:
Image arkaImage = new Image() { Source = writeableBitmap };
arkaImage
根本没有显示。可以做些什么来让它发挥作用?