关于DeviceContext(DC) [英] About DeviceContext (DC)

查看:95
本文介绍了关于DeviceContext(DC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我对内存设备上下文(MemDC)有疑问,

使用CreateCompatibleDC创建内存DC时(。 ..)&CreateBitmap(...),实际数据(与DC相关的位图)保存在哪里,

在主内存或显卡内存中?如果在主内存中光栅操作(如绘图功能)是由CPU还是GPU进行的?



非常感谢

Hi,

I have a question about memory device context (MemDC),
When creating a memory DC using CreateCompatibleDC(...) & CreateBitmap(...), the actual data (bitmap associated with DC) where is saved,
in the main memory OR video card memory? and if in the main memory the raster operations (such drawing functions) are doing by CPU or GPU?

Thanks a lot

推荐答案

内存DC只是一块内存。只有当您将其复制到视频卡和GPU所涉及的实际设备DC时。
A memory DC is just that, a piece of memory. It is only when you copy that to an actual device DC that the video card and GPU become involved.


这里的一些信息:比较Direct2D和GDI硬件加速 [ ^ ]。
Some info here: "Comparing Direct2D and GDI Hardware Acceleration"[^].


这篇关于关于DeviceContext(DC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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