- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
位图显示(Bitmap display)
位图显示(Bitmap display)
1, the bitmap of Windows is actually an array of bits corresponding to the display pixels.
2, the GDI bitmap is device dependent bitmap, represented by the CBitmap class in the MS basic class library (MFC), and relies on specific devices.
3, DIB device independent bitmap, than GDI bitmap has many programming advantages. Any machine that runs Windows can handle DIB bitmaps. DIB bitmaps are usually kept in disk as.BMP files, or stored as resources in the programs EXE or DLL file. WIN32API only supports DIB format files directly.
4, Windows uses fuzzy colors in bitmaps. The GDI bitmap is also a GDI object that is created (and initialized) when used, and then selected into the device environment and deleted after use.
Be careful:
When you use the GDI bitmap, you cant directly select the bitmap into the display device environment or the printer device environment. Must use the CDC: CreateCompatibleDC function to create a special memory device as a bitmap, and then use the CDC:: StretchBlt or CDC:: BitBlt function to each memory device in a copy to the device in real environment.
Explain:
1) CDC:: CreateCompatibleDC
Virtual BOOL CreateCompatibleDC (CDC* pDC);
Creates a memory device context that / is compatible with the device specified by pDC. A memory device context is a block of memory that represents a display surface. It can be used to prepare images in memory before copying them to the actual device surface of the compatible device.
2) CDC:: BitBlt
BOOL, BitBlt (int, x, int, y, int, nWidth, int, nHeight, CDC*, pSrcDC, int, xSrc, int, ySrc, DWORD, dwRop);
//Copies, a, bitmap, from, the, source, device, context, to, this,, current, device, context.
3) CDC:: StretchBlt
BOOL, StretchBlt (int, x, int, y, int, nWidth, int, nHeight, CDC*, pSrcDC, int, xSrc, int, ySrc, int, nSrcWidth, int, nSrcHeight, DWORD, dwRop);
//Moves, a, bitmap, from, source, rectangle, and, device, into, destination, rectangle, stretching, or, compressing, the, bitmap, if, neces
您可能关注的文档
- 上古卷轴5家具代码(Ancient scrolls 5 furniture code).doc
- 上升水瓶详解(Explanation of rising water bottle).doc
- 上市企业调查(Investigation of listed companies).doc
- 上光加工及常见故障排除办法(Glazing processing and common troubleshooting).doc
- 上海定额问答100问(Shanghai ration ask 100 questions).doc
- 上海家电品牌的清冷归宿(Cold home of Shanghai appliance brand).doc
- 上海小学二年级上册语文词语表(带拼音)(Shanghai primary school on the second grade Chinese words (Pinyin)).doc
- 上海日立投影仪维修(Shanghai Hitachi projector repair).doc
- 上海画廊业发展格局溯源(Tracing the development pattern of Shanghai gallery industry).doc
- 上海财经大学2000、2002、2003、2004经济学博士入学试题(Shanghai University of Finance and Economics, 2000, 2002, 2003, 2004 doctoral candidate in Economics).doc
最近下载
- 信阳农林学院《公共英语一》2023-2024学年第一学期期末试卷.doc VIP
- 个人征信报告模板征信报告模板(2021带水印).pdf VIP
- 如何做好医患沟通(1)(1).pptx VIP
- 4.4天净沙秋思 教学课件(共29张PPT)(含音频+视频).pptx VIP
- 毕业设计(论文)-基于PLC智能分类垃圾桶设计.docx VIP
- 消防给水管道水压试验方案.docx VIP
- 标准图集-闽2004G104 钢筋混凝土桩基承台.pdf VIP
- 江苏西德电梯图纸一体机KFS25-Y4F-B110(有机房).pdf VIP
- 《桉树更新免炼山造林技术规程》.docx VIP
- 免炼山造林PPT课件.pptx VIP
原创力文档


文档评论(0)