window size VS. pixel size

This is a discussion on window size VS. pixel size within the Windows Programming forums, part of the Platform Specific Boards category; anybody know how to work out how big to make a window based on the size of an image in ...

  1. #1
    dug
    dug is offline
    Registered User dug's Avatar
    Join Date
    Jun 2003
    Posts
    66

    window size VS. pixel size

    anybody know how to work out how big to make a window based on the size of an image in pixels?

    i thought that if you set a windows size to be, say, 200x200, and then displayed a 200x200 pixel image, the image would fill the window perfectly... unfortunately this doesn't seem to be the case... is there a way to calculate how big to make a window based on the number of pixels in an image?

    cheers chaps.
    "take the long road.... and walk it."

  2. #2

  3. #3
    dug
    dug is offline
    Registered User dug's Avatar
    Join Date
    Jun 2003
    Posts
    66
    yup, that's the one, very good method in that thread.

    thank you.
    "take the long road.... and walk it."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char Handling, probably typical newbie stuff
    By Neolyth in forum C Programming
    Replies: 16
    Last Post: 06-21-2009, 04:05 AM
  2. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  3. Dialog window size
    By xkrja in forum Windows Programming
    Replies: 1
    Last Post: 11-22-2006, 05:07 AM
  4. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 10:06 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

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