﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-C-文章分类-图形相关</title><link>http://www.cppblog.com/cokecoffe/category/17080.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 21 Jun 2011 23:24:34 GMT</lastBuildDate><pubDate>Tue, 21 Jun 2011 23:24:34 GMT</pubDate><ttl>60</ttl><item><title>图形编程 基础</title><link>http://www.cppblog.com/cokecoffe/articles/148744.html</link><dc:creator>Wangkeke</dc:creator><author>Wangkeke</author><pubDate>Wed, 15 Jun 2011 14:30:00 GMT</pubDate><guid>http://www.cppblog.com/cokecoffe/articles/148744.html</guid><wfw:comment>http://www.cppblog.com/cokecoffe/comments/148744.html</wfw:comment><comments>http://www.cppblog.com/cokecoffe/articles/148744.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/cokecoffe/comments/commentRss/148744.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/cokecoffe/services/trackbacks/148744.html</trackback:ping><description><![CDATA[<span class="Apple-style-span" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; ">1.0图形设备接口<br />&nbsp; &nbsp;1.GDI(图形设备接口)<br />&nbsp; &nbsp; &nbsp; &nbsp; GDI接受Windows应用程序的绘图请求（表现为GDI函数调用）,并将它们传给相应的设备驱动程序，完成指定的硬件输出，如屏幕的显示和打印机的打印。<br />&nbsp; &nbsp;2.DC(设备环境，上下文或者设备描述表)<br />&nbsp; &nbsp; &nbsp; &nbsp; 是一个关于如何绘制图形方法的集合，确定绘图模式和映射模式。DC数据结构存储了显示器的性能、属性之类的详细信息。Windows设备环境是GDI的关键元素，它代表了不同的物理设备。<br />&nbsp; &nbsp;3.CDC类<br />&nbsp; &nbsp; &nbsp; &nbsp; 设备环境不能被应用程序直接存取，只能通过调用有关函数或使用设备环境的句柄（HDC）来间接地存取设备环境的句柄和函数。CDC是设备环境的基类，包含了绘图所需要的所有成员函数（包括部分虚函数）。<br /><br />&nbsp; &nbsp; &nbsp;GDI是用于处理图形函数调用和驱动绘图设备的动态链接库，为了实现设备无关性，GDI定义了DC。用户绘制屏幕时需要通过设备环境间接实现。</span><img src ="http://www.cppblog.com/cokecoffe/aggbug/148744.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/cokecoffe/" target="_blank">Wangkeke</a> 2011-06-15 22:30 <a href="http://www.cppblog.com/cokecoffe/articles/148744.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>