Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.67 seconds.

  1. Replies
    12
    Views
    2,392

    [SOLVED] Re: can't get Image size.

    Okay, so your basic problem is that your image isn't done being loaded when you're calling the getWidth() and getHeight() functions. The API for Image actually explains that.

    There are two ways...
  2. Replies
    12
    Views
    2,392

    [SOLVED] Re: can't get Image size.

    There are a few things that stick out to me, but the most glaring is how you're trying to do your painting. If you're calling getGraphics() on anything other than an Image, you're doing something...
  3. Replies
    12
    Views
    2,392

    [SOLVED] Re: can't get Image size.

    Ack! No, please don't do that either. I'm sorry, I'm not trying to be obnoxious, but it's really important that we see the actual code you're running- without having to wade through so much extra...
  4. Replies
    12
    Views
    2,392

    [SOLVED] Re: can't get Image size.

    Sorry, but I don't really think that's enough. I wanted an SSCCE so I could see all of the major pieces- initializing the image, etc. Plus it's easier to help if I can just copy and paste your code...
  5. Replies
    12
    Views
    2,392

    [SOLVED] Re: can't get Image size.

    Would you mind throwing together an SSCCE that demonstrates how you're trying to do this?
  6. Replies
    12
    Views
    2,392

    [SOLVED] Re: can't get Image size.

    What ImageObserver are you trying to use?
Results 1 to 6 of 6