# to display bmp of any size

This is a discussion on to display bmp of any size within the C Programming forums, part of the General Programming Boards category; Hi..... I want to display a 8-bit bmp of any size on the screen.. which video mode should i use ...

1. ## to display bmp of any size

Hi.....
I want to display a 8-bit bmp of any size on the screen..
which video mode should i use in the AL register for ROM-BIOS function

2. Daaaaaaaaamn! Thats old school.
Let me re-phrase the question: what is the best screen resolution for displaying bitmaps?

Well, one could say that the higher the resolution the better - since you'll be able to show a bigger bitmap. You can also take into consideration the aspect ratio of each screen resolution - the closer to 1 the better.

gg

3. Originally posted by Codeplug
You can also take into consideration the aspect ratio of each screen resolution - the closer to 1 the better.
The ratio should be 4:3, not 1.

640 x 480 = (4*160) x (3*160)
800 x 600 = (4*200) x (3*200)
1024 x 768 = (4*256) x (3*256)
etc...

If it's not, the pixels will be stretched, making them look rectangular. Take mode 13 as an example (320*200).

4. 4/3 == 1.3333333333...

The closer to 1, the better.

gg

5. Originally posted by Codeplug
4/3 == 1.3333333333...

The closer to 1, the better.

gg
By saying that, you mean that 1.2 is better than 1.333... (4/3), which is not true.

6. To be more accurate: Humans perceive reality best (on a monitor) when an aspect ratio between 4:3 and 5:3 is used. Not surprisingly, most of the available (and most popular) modes are 4:3.

So, closer to 1 isn't accurate, although I don't know of any VBE modes that are < 4:3.

gg