繁体   English   中英

Windows Phone 8.1将图像从imageview获取到BitmapImage

[英]Windows phone 8.1 get image from imageview to BitmapImage

我正在尝试从-拍摄图像

<Image x:Name="ImagePreview" HorizontalAlignment="Left" Height="492" Margin="10,10,0,0" Stretch="UniformToFill" VerticalAlignment="Top" Width="380" />

ImagePreview用于预览带有添加的滤镜(例如grayScale,黑白或裁剪的原始图像)的图像。 所有这些的目的是将经过编辑的图像保存在手机上。

非常感谢用户@LovetoCode。 要获取图像,您需要从imagePreview投射它。

WriteableBitmap newImg = ImagePreview.Source为WriteableBitmap;

或对于位图:BitmapImage newImg = ImagePreview.Source为BitmapImage;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM