Thread: window size VS. pixel size

  1. #1
    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
    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, 06:07 AM
  4. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM