Hi Paul and all the others on the list,
Well, some weeks ago i wrote a short report to this list, describing almost
the same problem that you described. I designed a class, that dynamically
scales an image to the actual frame size.
Under Solaris and Windows this is absolutly no problem, even when i scale
it very big.
Under Linux (actual libc, jdk1.1.6v5 for libc) i can only resize the frame
to a certain size (about 900x600). If i want to scale it bigger suddenly
the image won't be repainted and scaled any more ....
Well i'm seeking for a solution, too ... if anyone could help us ..
--------------------------------------------------
On Mon, 19 Oct 1998, Paul Reavis wrote:
> Once upon a time, I was able to arbitrarily scale my Images when I
> painted them with Graphics.drawImage(image, x, y, width, height,
> observer). Now I'm finding that isn't so.
>
> The little snippet below illustrates this. It takes three arguments: an
> image file name, a width and a height. Image not incuded, I'm afraid. I
> recommend the following:
>
> $ javac ImageScaling.java
> $ file someimage.gif
> someimage.gif: GIF image data, version 89a, 400 x 400,
> $ java ImageScaling someimage.gif 400 400
>
> i.e., compile and try it with the normal image size arguments to prove
> it works normally. Then try shrinking it:
>
> $ java ImageScaling someimage.gif 200 200
> $ java ImageScaling someimage.gif 100 100
> $ java ImageScaling someimage.gif 50 50
> $ java ImageScaling someimage.gif 25 25
>
> This should all work; at least it did for me.
>
> Now try blowing it up:
>
> $ java ImageScaling someimage.gif 800 800
> $ java ImageScaling someimage.gif 1600 1600
>
> For some reason, this doesn't work in general - the image isn't drawn at
> all. I've had no success even just doubling both width and height.
> Smaller images do seem to take longer to blow up, but I can't get
> 800x800 out of a 100x100 image.
>
> I've ran back to 1.1.6, but my 1.1.5 and earlier were all libc5 and
> don't work any more. This runs the same on all 1.1.6 as far as I can
> tell.
>
> So am I insane, or is this some new bug? The feature that depends on
> this was working in our last version of our product; I just rewrote it
> for swing and was reimplementing the feature under swing when I ran into
> this all of a sudden. At first I thought it was Swing-related, but as
> you can see I was able to demonstrate it using only AWT components.
>
> - - - - - - - - - - - - - ->8 - - - - - - - - - - - - - - - - -
[CODE deleted]
> - - - - - - - - - - - - - ->8 - - - - - - - - - - - - - - - - -
------
mfg.
Steffen Tacke
**************************************************************************
** | EMail [EMAIL PROTECTED] | **
** | [EMAIL PROTECTED] | **
** | Mobil 0171-1214763 | **
** | | **
** | HOMEPAGE: http://www-ti.informatik.uni-tuebingen.de/~tacke | **
**************************************************************************