pixel in Bitmap??

This is a discussion on pixel in Bitmap?? within the Game Programming forums, part of the General Programming Boards category; Hey, guys!! I just wonder about the pixel size in bitmap, if it is already defined or variable. For instance: ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    173

    pixel in Bitmap??

    Hey, guys!!

    I just wonder about the pixel size in bitmap, if it is already defined or variable.
    For instance:

    if one squre bitmap with width and height are 10 mm, and each side has 10 pixels, so there are 100 pixels in this squre ( 10 x 10)
    so each pixel has 1mm long width and height.

    but if I increase this squre bitmap twice larger, e.g width and height are 20mm. so, how about pixel size then?
    they are 2mm for each?

    I hope you can understand my question
    thnx
    Don't laugh at me,I am just a SuperNewbie.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Well, if a pixel has the size 1x1 mm^2 in a 10x10 bitmap then the pixels should be 2x2 mm^2 in a 20x20 mm^2 bitmap (assuming it's still 10x10 pixels).

    However, the size of the pixels depends on what monitor you use and what resolution you have.
    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.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    173
    Thanks, buddy,

    I check the bitmap properties by right click, let's say if the bitmap is 50 X 50 (in pixel). Then I enlarge the bitmap size by double, and then I check the properties, and it becomes to 100 X 100 (in pixel), so, what is that then? number of pixel increases ^2 ?

    thanx again

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    If you double the width and double the height, you enlarge the picture 2 * 2 = 4 times.

    Check it:
    50 * 50 * (2 * 2) = 100 * 100
    2500 * 4 = 10000
    10000 = 10000
    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.

  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    173
    sure, I made this mistake, but I mean the number of the pixels increases if the size of bitmap increases?

  6. #6
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    That is the number of pixels the image can contain.

    The way it sounds, you probably need the definition of a pixel.

    pixel stands for picture element. A screen (or buffer, or bitmap, etc.) is like a grid of these pixels. When you hear someone saying the resolution of a surface they are talking about how many pixels are on that surface. For example: My screen is set up right now in 800x600 resolution, which means I got 800 pixels a row and 600 rows. Higher reolutions make smaller pixels, which allows for more detail, and/or bigger screens. Pixels sizes are not universal. If you set a 15" monitor running 800x600 and a 22" monitor running 800x600 next to each other, the 22" monitor's pixels will be bigger. A standard bitmap is set up sort of the same way; it is a table of pixels.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do read bitmap x,y pixel coords?
    By Queatrix in forum Game Programming
    Replies: 1
    Last Post: 09-06-2005, 05:30 PM
  2. OpenGL -- Bitmaps
    By HQSneaker in forum Game Programming
    Replies: 14
    Last Post: 09-06-2004, 04:04 PM
  3. bitmap not going onto screen
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 02-22-2003, 09:07 AM
  4. Saving a bitmap.
    By jdinger in forum Game Programming
    Replies: 4
    Last Post: 05-01-2002, 01:40 PM
  5. Bitmap Pixel
    By Alextrons in forum Windows Programming
    Replies: 2
    Last Post: 10-28-2001, 07:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21