Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6874231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:10:07+00:00 2026-05-27T04:10:07+00:00

Why are BMP images stored upside down and zero-padded so they are four-byte aligned?

  • 0

Why are BMP images stored upside down and zero-padded so they are four-byte aligned?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:10:08+00:00Added an answer on May 27, 2026 at 4:10 am

    Here’s a quote from Petzold:

    So, in DIBs, the bottom row of the image is the first row of the file,
    and the top row of the image is the last row in the file. This is
    called a bottom-up organization. Because this organization is
    counterintuitive, you may ask why it’s done this way.

    Well, it all goes back to the OS/2 Presentation Manager. Someone at
    IBM decided that all coordinate systems in PM—including those for
    windows, graphics, and bitmaps—should be consistent. This provoked a
    debate: Most people, including programmers who have worked with
    full-screen text programming or windowing environments, think in terms
    of vertical coordinates that increase going down the screen. However,
    hardcore computer graphics programmers approach the video display from
    a perspective that originates in the mathematics of analytic geometry.
    This involves a rectangular (or Cartesian) coordinate system where
    increasing vertical coordinates go up in space.

    In short, the mathematicians won. Everything in PM was saddled with a
    bottom-left origin, including window coordinates. And that’s how DIBs
    came to be this way.

    Source: Charles Petzold, Programming for Windows 5th Edition, Chapter 15.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have images of various formats (.png, .jpg, .bmp, etc.) stored as compressed text
I have 2 bmp images. ImageA is a screenshot (example) ImageB is a subset
I am converting images to byte array and storing in a text file using
I want to resize bmp images in codeigniter. How do i do that. Codeigniter
I recently wrote C programs for image processing of BMP images, I had to
I'm trying to display images stored in MSSql Db as varbinary, when execute my
(In .NET) I have arbitrary binary data stored in in a byte[] (an image,
Some jpeg image is stored with .bmp ext. I want to use gdi+ to
I am using an imageList which has 5 images stored, 3 of which are
does anybody knows some clean sollution to open image resource from bmp images in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.