CreateCompatibleBitmap CreateBitmap 区别
来源:互联网 发布:龙将新一路相随数据 编辑:程序博客网 时间:2024/06/08 17:35
After a bitmap is created, it can be selected into a device context by calling theSelectObject function.
While the CreateBitmap function can be used to create color bitmaps, for performance reasons applications should useCreateBitmap to create monochrome bitmaps and CreateCompatibleBitmap to create color bitmaps. When a color bitmap returned fromCreateBitmap is selected into a device context, the system must ensure that the bitmap matches the format of the device context it is being selected into. BecauseCreateCompatibleBitmap takes a device context, it returns a bitmap that has the same format as the specified device context. Because of this, subsequent calls toSelectObject are faster than with a color bitmap returned from CreateBitmap.
If the bitmap is monochrome, zeros represent the foreground color and ones represent the background color for the destination device context.
If an application sets the nWidth or nHeight parameters to zero,CreateBitmap returns the handle to a 1- by 1-pixel, monochrome bitmap.
When you no longer need the bitmap, call the DeleteObject function to delete it.
- CreateCompatibleBitmap CreateBitmap 区别
- CreateCompatibleBitmap
- CreateBitmap
- CreateBitmap
- CreateBitmap
- CreateCompatibleBitmap failing
- Android CreateBitmap
- Graphics->CreateBitmap
- Android CreateBitmap
- Bitmap.createBitmap
- wince6.0 兼容位图CreateCompatibleBitmap和非兼容位图CreateDIBSection的区别
- CreateCompatibleDC CreateCompatibleBitmap SelectObject详解
- CreateCompatibleDC CreateCompatibleBitmap SelectObject详解
- CreateCompatibleBitmap 的使用
- CreateCompatibleDC CreateCompatibleBitmap SelectObject
- CreateCompatibleDC,CreateCompatibleBitmap,SelectObject详解
- 详解CreateCompatibleBitmap 的使用
- CreateCompatibleDC,CreateCompatibleBitmap,SelectObject详解
- 股票投资
- 51单片机 学习之旅[2] 数码管
- 条件数(condition number)
- Linux中显示系统中USB信息的lsusb命令
- 关于在cocos2dx中的转UI线程
- CreateCompatibleBitmap CreateBitmap 区别
- 朝花夕拾----新组件的学习和使用
- 关于JS-闭包概念的好文章
- iOS-Core-Animation-Advanced-Techniques(五)
- iar注释快捷键
- JAX-WS开发的webservice如何在Tomcat下发布
- 关于mysql数据库的中文乱码问题
- 解决android2.3版本下设置控件透明度的问题
- SAX解析