[WPSL]如何在Windows Phone 8中将system.windows.control.image对象转换为bytearray或stream [英] [WPSL]how to convert system.windows.control.image object to bytearray or stream in windows phone 8

查看:67
本文介绍了[WPSL]如何在Windows Phone 8中将system.windows.control.image对象转换为bytearray或stream的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将图像对象转换为字节数组或流....请帮助我...谢谢你

i wants to convert image object to byte array or stream....please help me out...thanks

推荐答案

为什么计划在获得字节数组后使用它? 

For what purpose are you planning to use the byte array once you get it? 

您可以将图像控件渲染到WriteableBitmap对象上,然后从对象Pixels属性中获取数组,但最好使用加载到Image中的原始图像文件控制...取决于你实际想要通过获取字节来实现

You can render the image control onto a WriteableBitmap object then get an array from the objects Pixels property, but it may be better to use the original image file loaded into the Image control ...depending on what you're actually trying to accomplish by getting the bytes.


这篇关于[WPSL]如何在Windows Phone 8中将system.windows.control.image对象转换为bytearray或stream的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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