Results 1 to 2 of 2
  1. #1
    jan1ey is offline Member
    Join Date
    Feb 2009
    Posts
    1
    Rep Power
    0

    Default Resolution problem!

    Hi guys,

    I am writing a simple gaming program (in eclipse). What I am trying to figure out, is how to enable all resolutions to display a full size picture on the screen.

    I can fit the picture to my own screen, but am having problems trying to enable it to automatically fit "ANY" screen.

    Also, I have "set" the collisions to work on the "set width and height" of my screen and need to know if there was any way to "automatically" do that too.

    I am a beginner, so please be gentle :-)


    Any assistance, I would appreciate,

    Thanks,

    Jane

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Java Code:
    GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getBounds();
    If it's that you don't know how to get the resolution. Then scale the image to fit it.

Similar Threads

  1. What's Your New Year's Resolution?
    By CaptainMorgan in forum Forum Lobby
    Replies: 4
    Last Post: 11-16-2008, 10:05 PM
  2. Prob. with screen resolution and Frame size??
    By SANDY_INDIA in forum AWT / Swing
    Replies: 1
    Last Post: 08-16-2008, 01:51 PM
  3. Replies: 0
    Last Post: 03-10-2008, 03:36 PM
  4. How to change the resolution ?
    By samson in forum Java 2D
    Replies: 1
    Last Post: 07-17-2007, 12:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •