Silverlight 中的位图图像大小限制
我正在制作一个 Windows Phone 7 应用程序,其中涉及从网络获取大图像并将其放入 ScrollViewer
中供用户滚动浏览。不过,我认为我遇到了 BitmapImage
的限制,因为图像似乎在高度或宽度上被截断为 2048 像素。
这是 Silverlight BitmapImage 的已知限制吗?在这种情况下是否可以使用其他类来允许滚动大图像?
谢谢
I'm making a Windows Phone 7 application which involves getting large images from the web and putting it in a ScrollViewer
for the user to scroll through. I think I'm hitting a limitation of BitmapImage
, though, as the image seems to get cut off at 2048 pixels in either height or width.
Is this a known limitation of Silverlight BitmapImage
and is there some other class to use in this case to allow scrolling through the large images?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,有 2k x 2k 的限制。这是限制,白皮书“为 Windows Phone 创建高性能 Silverlight 应用程序”http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=3a8636bf-185f-449a-a0ce-83502b9ec0ec
XAML:
代码隐藏:
如果没有可用的 JPEG 流,WriteableBitmapEx 的 Resize 方法也可以用于此任务。
Yes, there is a limit of 2k x 2k. This is limitation and a workaround are described in the white paper "Creating High Performing Silverlight Applications for Windows Phone" http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=3a8636bf-185f-449a-a0ce-83502b9ec0ec
XAML:
Code Behind:
The Resize method of the WriteableBitmapEx can also be used for this task if no JPEG stream is available.