获取一个的DrawingContext的WriteableBitmap的WPF [英] Getting a DrawingContext for a wpf WriteableBitmap

查看:698
本文介绍了获取一个的DrawingContext的WriteableBitmap的WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法得到一个的DrawingContext (或类似的东西)的 WriteableBitmap的?即什么让你调用简单的的DrawLine / DrawRectangle的 /等多种方法,而不是直接操纵原始像素。

Is there a way to get a DrawingContext (or something similar) for a WriteableBitmap? I.e. something to allow you to call simple DrawLine/DrawRectangle/etc kinds of methods, rather than manipulate the raw pixels directly.

推荐答案

看起来<一个href=\"http://social.msdn.microsoft.com/forums/en-US/wpf/thread/84299fec-94a1-49a1-b3bc-ec48b8bdf04f/\"相对=nofollow>这个词没有。

对于未来的参考,我们计划使用的端口可写的位图扩展为WPF。

For future reference, we plan to use a port of the Writeable Bitmap Extensions for WPF.

有关使用纯粹现有code的解决方案,任何下面提及的其他建议将工作。

For a solution using purely existing code, any of the other suggestions mentioned below will work.

这篇关于获取一个的DrawingContext的WriteableBitmap的WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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