Thread: BITMAP Measurement

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

    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,195
    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.

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    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, 09: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, 10:07 AM
  5. texture is all white in opengl!
    By Crossbow in forum Game Programming
    Replies: 7
    Last Post: 03-31-2002, 11:54 AM