Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的画布上有一个简单的 ImageSource silverlight 控件。工作正常。有什么方法可以将 ImageSource 的内容提取到字节数组中?
干杯!
PS。任何版本的 SL 都可以。
我不确定您是否可以从 ImageSource 组件中获取字节数组,但您可能可以创建一个 BitmapImage 并设置其 UriSource 属性,然后从那里获取字节 []。不完全是您问题的答案,而是hth ;)