Talk:BMP file format
| This is the talk page for discussing improvements to the BMP file format article. This is not a forum for general discussion of the subject of the article. |
Article policies
|
| Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
| Archives: 1, 2Auto-archiving period: 12 months |
| This article is rated C-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
| ||||||||||||||
BMP line order
To me the most unusual characteristic of the BMP format is that the pixel lines are stored in bottom up order. Years ago I wrote a program to convert .IMG scan files produced by WIPS software for a Xerox Datacopy 730 scanner to .PCX run length encoded for file export via floppy diskette. I added support for .BMP and .RLE formats. The first thing I discovered was that the "first" scan line in the .BMP file is the bottom line of pixels in the image (whereas in the .IMG and .PCX format the first scan line in the file is the top line). Naaman Brown (talk) 14:57, 24 September 2009 (UTC)
The "bottom up" line order I believe may derive from graphics texture mapping which uses the "mathematical" axes having (0,0) bottom left on the graph, so yes the bitmap image format pixel array (and other formats) do not work from the top down. I'm adding this to the main page as I think it's important information which is not obvious. Ah I missed it (it's already added) Grahamatwp (talk) 14:23, 27 May 2023 (UTC)
more FORMAT sources
http://www.fileformat.info/format/bmp/index.dir
Example 1 and 2 table enquiries
When I was trying to calculate to ensure I fully understand the workings and file structure of the BMP file structure. My calculations are different from what was displayed in the table.
In example 1 At the row 02h offset, I calculated the size of BMP file to be 70 bytes, but it was (64 + 6) not (54 + 16), can I know where did I go wrong with my calculation steps?
Steps: 1. '46 00 00 00' are the hex values 2. 6 * 160 + 4 * 161 = 6 + 64
At the row 26h, how was the value 2835 pixels calculated? The formula 72DPI X 39.3701 inches wasn't explained quite clearly. My own calculations gave me 4875 pixels using the steps similar to the one above.
Thank you for your time and help. 210.19.13.180 (talk) 15:17, 22 March 2023 (UTC)
Pixels or Texels?
Is it correct to use the term 'pixel' in the article? I think that a more appropriate term would be 'texel'. After all, a bitmap unit can be displayed in more than one pixel (zoom in) or occupy an area smaller than one pixel (zoom out). 188.47.110.77 (talk) 19:55, 18 August 2024 (UTC)
- The term 'texel' only applies to texture mapping. Most BMP files are not used in that way, so 'pixel' is correct. MrOllie (talk) 20:02, 18 August 2024 (UTC)
Related Formats?
The article says that XBM and XPM are similar formats. They really are not. Windows bit maps are binary formats. You'll need a hex editor or hexdump to see the data in them. XBM and XPM are actually plain text files that can be opened in any text editor. They are formatted as a C header file that can be included in a C source file. PPM and PBM are also plain text files. 173.189.8.8 (talk) 21:30, 8 October 2024 (UTC)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
