- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Image和Bitmap类概述(Image and Bitmap class overview)
Image和Bitmap类概述(Image and Bitmap class overview)
Overview of Image and Bitmap classes
GDI+s Image class encapsulates the functions of BMP, GIF, JPEG, PNG, TIFF, WMF (Windows metafile) and EMF (enhanced WMF), image file calls, format conversion, and simple processing. Bitmap is an image class that inherits from the Image class. It encapsulates the common functions of Windows bitmap operations. For example, Bitmap:: SetPixel and Bitmap:: GetPixel were used to read and write bitmap pixel operation, which can provide a possibility for the blur and image processing.
3.DrawImage method
DrawImage is the Graphics class of GDI+, the core method of displaying images, and its overloaded functions have many. The commonly used overloaded functions are:
Status DrawImage (Image*, image, INT, x, INT, y);
Status DrawImage (Image*, image, const, Rect, rect);
Status DrawImage (Image*, image, const, Point*, destPoints, INT, count);
Status, DrawImage (Image*, image, INT, x, INT, y,
INT, srcx, INT, srcy, INT, srcwidth, INT, srcheight, Unit, srcUnit);
Where (x, y) is used to specify the location of the image image display, this position corresponds to the upper left corner of the image image. Rect is used to specify the rectangle region to be filled by the image. DestPoints and count are used to specify the vertex and vertex number of a polygon, respectively. If count is 3, it means that the polygon is a parallelogram, and another vertex is automatically given by the system. At this point, the data in destPoints corresponds to the vertex coordinates of the upper left corner, the upper right corner, and the lower left corner of the source image in turn. Srcx, srcy, srcwidth, and srcheight are used to specify the location and size of the source image to be displayed. SrcUnit is used to specify the units to be used, and PageUnitPixel is used by default, that is, pixels are used as units of measurement.
Calling and displaying image files
In the GDI+ call and display the image file is very eas
您可能关注的文档
- 行为治疗(Behavior therapy).doc
- 行为观察看人心(Conduct observation and see people's hearts).doc
- 行善积德(One good turn deserves another).doc
- 行政效能建设(Administrative efficiency construction).doc
- 蓝魔固件升级方法+砖机修复方法(Ramos firmware upgrade method + brick machine repair method).doc
- 蝴蝶效应( The Butterfly Effect)是指在一个动力系统中,初始条件下(The Butterfly (Effect) refers to a dynamic system, under the initial conditions).doc
- 行政法与行政诉讼法09第四章(Administrative law and administrative procedural law, the 09 and fourth chapters).doc
- 行政管理章节重点题(Key issues in administration).doc
- 行政职业能力倾向测试知识扩充之句子练习二(A sentence exercise to enlarge the knowledge of administrative aptitude test two).doc
- 行政职业能力测验(一、二)(Test of administrative professional ability (one or two)).doc
- image转byte[](Turn the image byte []).doc
- imy格式的文件的制作流程(The process of making documents in imy format).doc
- INI文件读取模块(VB6源代码)(INI file read module (VB6 source code)).doc
- Inode学生区校园网使用指南(Guidelines for use of Inode student area campus network).doc
- In your eyes(在你的眼里).doc
- Inno Setup教程-常见问题解答(Inno Setup tutorial - FAQ).doc
- IGNITO物品代码大全(IGNITO article code complete).doc
- IBM安装驱动顺序(IBM installation drivers order).doc
- IN THE NEWS - Captain Blamed for Italy’s Costa Concordia Disaster(新闻中,队长指责意大利的科斯塔·康科迪亚(Costa Concordia)灾难).doc
- inotia4代码与修改方法(Inotia4 code and modification methods).doc
文档评论(0)