I'm not sure whether this is the problem, but I may have a few minor pointers.

The rectangle into which you draw is probably not what you want.  You have your 
height and width sorted out properly, but not your origin, which should be 
(LEFT_MARGIN, TOP_MARGIN) rather than (0, 0), if I understand your intent 
correctly.

The 'null' parameter is your ImageObserver; it doesn't hurt to make the parent 
panel your observer so that new information can be sent properly.  Possibly 
this is your issue: the bottom-right pixels (the ones progressed lastly) aren't 
drawn properly because the information might never be made available.

All this would change your call to [i]Graphics2D.drawImage[/i] to:
[code]
int x = LEFT_MARGIN, y = TOP_MARGIN;
int width = getWidth()  - RIGHT_MARGIN - LEFT_MARGIN:
int height = getHeight() - TOP_MARGIN   - BOTTOM_MARGIN;
canvas.drawImage(image, x, y, width, height, this);
[/code]
Hope this helps.
[Message sent by forum member 'tarbo' (tarbo)]

http://forums.java.net/jive/thread.jspa?messageID=212048

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to