找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 986|回复: 4

一个不懂的参数

[复制链接]
发表于 2009-11-8 02:07:46 | 显示全部楼层 |阅读模式 IP:江苏扬州
BITMAP BM;
m_Bitmap.LoadBitmap(IDB_BITMAP1);
m_Bitmap.GetBitmap(&BM);
其中的&BM是什么意思啊,为什么要这样啊??
发表于 2009-11-8 02:07:48 | 显示全部楼层 IP:江苏扬州
应该是获得它的地址吧,这样就可以得到位图参数了
回复

使用道具 举报

发表于 2009-11-8 02:07:49 | 显示全部楼层 IP:江苏扬州
BITMAP Structure
The BITMAP structure has the following form:
typedef struct tagBITMAP { /* bm */
int bmType;
int bmWidth;
int bmHeight;
int bmWidthBytes;
BYTE bmPlanes;
BYTE bmBitsPixel;
LPVOID bmBits;
} BITMAP;
The BITMAP structure defines the height, width, color format, and bit values of a logical bitmap.
Members
bmType
Specifies the bitmap type. For logical bitmaps, this member must be 0.
bmWidth
Specifies the width of the bitmap in pixels. The width must be greater than 0.
bmHeight
Specifies the height of the bitmap in raster lines. The height must be greater than 0.
bmWidthBytes
Specifies the number of bytes in each raster line. This value must be an even number since the graphics device interface (GDI) assumes that the bit values of a bitmap form an array of integer (2-byte) values. In other words, bmWidthBytes * 8 must be the next multiple of 16 greater than or equal to the value obtained when the bmWidth member is multiplied by the bmBitsPixel member.
bmPlanes
Specifies the number of color planes in the bitmap.
bmBitsPixel
Specifies the number of adjacent color bits on each plane needed to define a pixel.
bmBits
Points to the location of the bit values for the bitmap. The bmBits member must be a long pointer to an array of 1-byte values.
Comments
The currently used bitmap formats are monochrome and color. The monochrome bitmap uses a 1-bit, 1-plane format. Each scan is a multiple of 16 bits.
Scans are organized as follows for a monochrome bitmap of height n:
Scan 0
Scan 1
.
.
.
Scan n-2
Scan n-1
The pixels on a monochrome device are either black or white. If the corresponding bit in the bitmap is 1, the pixel is turned on (white). If the corresponding bit in the bitmap is 0, the pixel is turned off (black).
All devices support bitmaps that have the RC_BITBLT bit set in the RASTERCAPS index of the CDC::GetDeviceCaps member function.
Each device has its own unique color format. In order to transfer a bitmap from one device to another, use theGetDIBits andSetDIBits Windows functions.
See Also CBitmap::CreateBitmapIndirect
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-29 11:24 , Processed in 0.294450 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表