[3660] in java-interest

home help back first fref pref prev next nref lref last post

Re: Simple Draw Image

daemon@ATHENA.MIT.EDU (Jim Graham)
Tue Nov 21 19:48:28 1995

Date: Tue, 21 Nov 1995 13:54:27 -0800
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
To: aleph1@dfw.net, jshermer@BASISinc.com
Cc: java-interest@java.Eng.Sun.COM


Hi Jill,

> Hmmm,  I have figured out, by resizing my appletviewer window to
> cover my root window, that the first image in my image loop is drawn to
> a very large scale before my image loop is drawn.  That is why I
> am seeing this unexpected top-left border interferring with my expected image
> loop.  How do I turn this off?   Any clues?

There is nothing inherent in the image drawing code that draws your
image to a very large scale for you, you have to be doing that yourself.

Without seeing your code, it sounds as if you are using the scaling
version of drawImage (drawImage(img, x, y, w, h, this)) with improperly
initialized variables for the width and height parameters.  If you don't
want scaling, then just use the regular method (drawImage(img, x, y, this)),
otherwise, make sure that the width and height you are requesting are
the width and height you really want (i.e. the variables you are using
have been properly initialized with the dimensions you want).

				...jim
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post