Thread: to display bmp of any size

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    4

    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. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    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. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    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).
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    4/3 == 1.3333333333...

    The closer to 1, the better.

    gg

  5. #5
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    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.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  6. #6
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Generic heapsort
    By Sephiroth1109 in forum C Programming
    Replies: 15
    Last Post: 12-07-2007, 06:14 PM
  2. display character size...(quite urgent..)
    By karthi in forum C Programming
    Replies: 10
    Last Post: 07-11-2007, 09:42 PM
  3. Strange problem with bmp
    By Victor in forum Linux Programming
    Replies: 2
    Last Post: 04-04-2005, 02:48 PM
  4. to display 8-bit bmp
    By rakesh09 in forum C Programming
    Replies: 2
    Last Post: 03-25-2003, 01:07 AM
  5. display pcx / bmp images
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 11-27-2001, 09:56 AM