加入收藏    联系我们    

首页 | 公司简介 | 数据恢复 | 成功案例 | 技术中心 | 服务报价 | 客户服务 | 联系我们 | 技术论坛 | 北亚博客     
 当前位置:首页 >> 技术中心 >> 数据恢复文栏 >> 正文
 
Graphics File Formats(Windows的.BMP .CUR .ICO文件的格式,有范例)

作者:北亚  来源:北亚数据恢复中心  发布日期:2007-8-9 16:29:02  点击次数:

this topic describes the graphics-file formats used by the microsoft windows
operating system. graphics files include bitmap files, icon-resource files,
and cursor-resource files.

bitmap-file formats

windows bitmap files are stored in a device-independent bitmap (dib) format
that allows windows to display the bitmap on any type of display device. the
term "device independent" means that the bitmap specifies pixel color in a
form independent of the method used by a display to represent color. the
default filename extension of a windows dib file is .bmp.

bitmap-file structures

each bitmap file contains a bitmap-file header, a bitmap-information header,
a color table, and an array of bytes that defines the bitmap bits. the file
has the following form:

bitmapfileheader bmfh;
bitmapinfoheader bmih;
rgbquad acolors[];
byte abitmapbits[];

the bitmap-file header contains information about the type, size, and layout
of a device-independent bitmap file. the header is defined as a
bitmapfileheader structure.

the bitmap-information header, defined as a bitmapinfoheader structure,
specifies the dimensions, compression type, and color format for the bitmap.

the color table, defined as an array of rgbquad structures, contains as many
elements as there are colors in the bitmap. the color table is not present
for bitmaps with 24 color bits because each pixel is represented by 24-bit
red-green-blue (rgb) values in the actual bitmap data area. the colors in

the
table should appear in order of importance. this helps a display driver
render a bitmap on a device that cannot display as many colors as there are
in the bitmap. if the dib is in windows version 3.0 or later format, the
driver can use the biclrimportant member of the bitmapinfoheader structure

to
determine which colors are important.

the bitmapinfo structure can be used to represent a combined
bitmap-information header and color table. the bitmap bits, immediately
following the color table, consist of an array of byte values representing
consecutive rows, or "scan lines," of the bitmap. each scan line consists of
consecutive bytes representing the pixels in the scan line, in left-to-right
order. the number of bytes representing a scan line depends on the color
format and the width, in pixels, of the bitmap. if necessary, a scan line
must be zero-padded to end on a 32-bit boundary. however, segment boundaries
can appear anywhere in the bitmap. the scan lines in the bitmap are stored
from bottom up. this means that the first byte in the array represents the
pixels in the lower-left corner of the bitmap and the last byte represents
the pixels in the upper-right corner.

the bibitcount member of the bitmapinfoheader structure determines the

number
of bits that define each pixel and the maximum number of colors in the
bitmap. these members can have any of the following values:

value meaning

1 bitmap is monochrome and the color table contains two entries. each
bit in the bitmap array represents a pixel. if the bit is clear, the pixel

本新闻共13页,当前在第01页  
01  02  03  04  05  06  07  08  09  10  
11  12  13  



上一篇:

bmp format(bmp文件格式)

下一篇: 数据安全的注意事项
 >> 服务电话
  北京总部: 4006-505-808
  上 海 部: 021-58358765
  深 圳 部: 0755-83692929
  浙 江 部: 13666673722
  广 州 部: 020-83821091
  重 庆 部: 023-86870422
  福 建 部: 0591-83300680
  昆 明 部: 15987117834
  其它地区: 4006-505-808
最新案例  
北京某超市-硬盘数据
移动硬盘格式化数据恢
苹果电脑误删除文件恢
笔记本数据恢复成功-
重装系统,原分区数据
分区无法访问,数据丢
硬盘数据恢复成功-日
解决方案  
RAID损坏后 对数据的完
LINUX FSCK数据出错灾
误删除、误格式化数据
误GHOST、误一键恢复灾
磁盘未被格式化,是否格
raid磁盘阵列OFFLINE后
硬盘出现异响应急处理
more>>
 >> 友情链接
数据恢复 数据恢复 数据恢复 数据恢复 数据恢复 数据恢复 数据恢复
返回首页 | 关于我们 | 在线留言 | 联系我们 | 友情链接

版权所有 北京北亚数据恢复中心
全国统一客服电话:4006-505-808 或 800-810-5880
中关村部:北京市海淀区中关村大街11号E世界A座8层832B室
皂君庙部:北京市海淀区学院南路68号吉安大厦C座(汇智楼)528室
京ICP备06031461