ps:您可以转载,但请注明出处;你可以修改,但请将修改结果告诉我。
Basic Drawing
绘图基础
The subsystem of Microsoft Windows responsible for displaying graphics on video displays and printers is known as the Graphics Device Interface (GDI). As you might imagine, GDI is an extremely important part of Windows. Not only do the applications you write for Windows use GDI for the display of visual information, but Windows itself uses GDI for the visual display of user interface items such as menus, scroll bars, icons, and mouse cursors.
微软 Windows 负责在视频显示器和打印机上显示图形的子系统叫做图形设备接口(GDI)。正如你可能想象的,GDI 是 Windows 非常重要的部分。不但你为 Windows 编写的应用程序确实需要将 GDI 用于可视化信息的显示,而且 Windows 本身也要将 GDI 用于诸如菜单,滚动条,图标和鼠标指针的用户接口项目的可视化显示。
Unfortunately, a comprehensive discussion of GDI would require an entire book, and this is not that book. Instead, in this chapter I want to provide you with the basics of drawing lines and filled areas. This is enough GDI to get you through the next few chapters. In later chapters, we'll look at GDI support of bitmaps, metafiles, and formatted text.
不幸的是,全面的 GDI 讨论将需要一整本书,而这不是哪本书。然而,在本章我想提供给你画线和填充区域的基础。这是足够帮你到达下几章的 GDI。在后面的章节中,我们将看到 GDI 对位图,元文件和格式化文本的支持。