位图文件的哪一部分是元数据? [英] Which part of a bitmap file is metadata?

查看:84
本文介绍了位图文件的哪一部分是元数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在修改位图文件,并且得到了一些非常奇怪的结果.我想我可能不小心更改了元数据的一部分.元数据是哪一部分,所以我知道将其排除在我正在执行的二进制操作之外?

I have been modifying bitmap files, and I've been getting some very strange results. I think I may accidentally be changing part of the metadata. Which part is the metadata, so I know to leave it out of the binary manipulation I am doing?

我正在寻找一个答案,该答案告诉我哪些字节是元数据的一部分,而不管它们是在文件的开头还是结尾.元数据是指不属于像素的任何内容.

I am looking for an answer that tells me which bytes are part of the metadata, whether they are at the beginning or end of the file. By metadata I mean anything that isn't part of a pixel.

推荐答案

简单故障

有两种Windows位图文件:

Simple Breakdown

There are two kinds of Windows Bitmap file:

  • DDB-设备相关位图(位图版本1)
  • DIB-与设备无关的位图(位图版本2-5)

DDB文件有两个部分:

There are two parts to a DDB file:

  • 标题/元数据
  • 像素数据

检测DDB文件并按以下方式偏移:

Detect a DDB file and Offset by:

  • 第一个 WORD = 0x0000
  • 像素数据的偏移量始终= 10
  • The first WORD = 0x0000
  • The offset for the Pixel Data is always = 10

DIB文件包含三个部分:

There are three parts to a DIB file:

  • 标题/元数据
  • 数据
  • 颜色配置文件(仅适用于第5版)

页眉/元数据分为三部分

There are three parts to the Header/Metadata

  • DIB文件信息
  • DIB图片信息
  • 颜色表

检测DIB文件并按以下方式偏移:

Detect a DIB file and Offset by:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆