使用缩放高分辨率图像调整图像大小 [英] resize image with scale high resolution image
本文介绍了使用缩放高分辨率图像调整图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我
在我的应用程序中我有一张高分辨率图片。
用于读取图片中的 对象我必须调整大小否则会出现OutOfMemory错误。
你有任何缩放我的图片的公式吗?
i必须使用Writablebitmap?
谢谢
解决方案
使用BitmapImage和DecodePixelHeight / DecodePixelWidth对图像进行下采样。 Image Recipies示例代码中有一个示例:
http://code.msdn.microsoft。 com / wpapps / Image-Recipes-0c0b8fee
Hello,
in my app i have a high resolution picture.
for read picture in a object i must resize otherwise get OutOfMemory error.
you have any formula for scaling my picture?
i must use Writablebitmap?
thank you
解决方案
Use BitmapImage and DecodePixelHeight / DecodePixelWidth to downsample an image. There's an example in the Image Recipies sample code: http://code.msdn.microsoft.com/wpapps/Image-Recipes-0c0b8fee
这篇关于使用缩放高分辨率图像调整图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文