BITMAP Measurement

This is a discussion on BITMAP Measurement within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I have a Bitmap and I was wondering whether there is a tool within the VS IDE which will ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    223

    Smile BITMAP Measurement

    Hi,

    I have a Bitmap and I was wondering whether there is a tool within the VS IDE which will allow me to measure individual portionsof the bitmap.
    What I want to know is the actual sizes of specific portions within the background image which I will need to know to set boundaries. Clicking on properties gives me only the pixel count for the whole bitmap image. IS there a way to localise the properties shown for areas of interst within the bmp?

    Thanks

  2. #2
    Registered User
    Join Date
    Apr 2006
    Posts
    137
    If you mean in the code, I believe there is a way to grab a BMP handle and check it's dimensions using RECT.

    If you mean outside, use photoshop or something.
    ★ Inferno provides Programming Tutorials in a variety of languages. Join our Programming Forums. ★

  3. #3
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    If you mean the dimension of a a particular object in teh image, you need to use image recognition, the BMP just keeps the raw image size necessaryt o properly display the image.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,855
    Quote Originally Posted by execute View Post
    If you mean in the code, I believe there is a way to grab a BMP handle and check it's dimensions using RECT.
    GetObject() with a BITMAP struct
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Loading a bitmap (Without using glaux)
    By Shamino in forum Game Programming
    Replies: 7
    Last Post: 03-16-2006, 08:43 AM
  2. OpenGL -- Bitmaps
    By HQSneaker in forum Game Programming
    Replies: 14
    Last Post: 09-06-2004, 04:04 PM
  3. Loading a Bitmap resource for OpenGL Texture[x]
    By the dead tree in forum Game Programming
    Replies: 4
    Last Post: 08-26-2004, 01:12 PM
  4. bitmap not going onto screen
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 02-22-2003, 09:07 AM
  5. texture is all white in opengl!
    By Crossbow in forum Game Programming
    Replies: 7
    Last Post: 03-31-2002, 10:54 AM

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