在WP7中加载较低质量的图像? [英] Loading image in lower quality in WP7?

查看:128
本文介绍了在WP7中加载较低质量的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从隔离存储加载图像时是否可以以较低质量格式加载图像?我正在遍历指向独立存储中的图像的文件路径列表。

Is it possible when loading an image from Isolated Storage to load it in lower quality format? I'm looping through a list of file paths that point to an image in Isolated Storage.

例如,这里是我的代码:

For example here is my code right now:

myObjectsList[i].ImageSrc = PictureDecoder.DecodeJpeg(imageStream);

最终代码运行正常,但加载6张图片需要很长时间而且我正在点击大约250mb(超过低端设备的限制)。所以我想弄清楚的是,是否可以以较低质量的格式加载图像。或者当然,如果有人有任何其他建议,我将非常感谢您的反馈。

Eventually the code runs fine, but it takes extremely long to load just 6 images and I'm hitting around 250mb (which is way over the limit for lower end devices). So what I was trying to figure out is if it's possible to load the images in a lower quality format. Or of course if anyone has any other suggestions I'd appreciate your feedback.

推荐答案

当您保存图像时,请创建您的缩略图图像并加载它们以供预览。这是解决此类问题的标准解决方案。

When you save your images create thumbnails of your images and load them for preview. This is a standard solution for this kind of problems.

我不知道是否可以加载质量较低的图像,但它对你的内存问题没有帮助。

I don't know if it's possible to load lower quality images, but it won't help you with your memory issue.

这篇关于在WP7中加载较低质量的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆