首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

什么是图标图片的位面数,该如何解决

2013-01-06 
什么是图标图片的位面数在看icon文件结构时遇到的一个概念, 不知道是什么意思,即下面结构的wplanes字段。谢

什么是图标图片的位面数
在看icon文件结构时遇到的一个概念, 不知道是什么意思,即下面结构的wplanes字段。谢谢!


Public Type icondirentry
     bwidth   As Byte ';byte     // width, in pixels, of the image:图像宽度,以象素为单位。一个字节
     bheight   As Byte ';byte    // height, in pixels, of the image:图像高度,以象素为单位。一个字节
     bcolorcount   As Byte ';byte   // number of colors in image (0 if >=8bpp):图像中的颜色数(如果是>=8bpp的位图则为0)
     breserved   As Byte ';byte     // reserved ( must be 0):保留字必须是0
     wplanes   As Integer ';word    // color planes:为目标设备说明位面数,其值将总是被设为1
     wbitcount   As Integer ';word    // bits per pixel:每象素所占位数。
     dwbytesinres   As Long  ';dword    // how many bytes in this resource?:这份资源所占字节数
     dwimageoffset   As Long ';dword    // where in the file is this image?:图像数据(iconimage)起点偏移位置。
End Type ' icondirentry


[解决办法]
这个值总是1,所以不用深究了。

热点排行