正文

[原]hDc与CDC2008-01-30 14:17:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/sword2008/32497.html

分享到:

一个是句柄,一个是对象。

CDC::CreateCompatibleDC 

virtual BOOL CreateCompatibleDC( CDC* pDC );

Return Value

Nonzero if the function is successful; otherwise 0.

重要的在这

It can be used to prepare images in memory before copying them to the actual device surface of the compatible device.

可以进行图像缓冲

When a memory device context is created, GDI automatically selects a 1-by-1 monochrome stock bitmap for it. GDI output functions can be used with a memory device context only if a bitmap has been created and selected into that context.

只有图像被作为资源引入并选入该容器,GDI导出函数才可能被使用。

原来是操作GDI的利器

 

阅读(3149) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册