[4510] in java-interest
clipping rect bug in createImage()?
daemon@ATHENA.MIT.EDU (Dave Lennert)
Wed Jan 3 21:03:05 1996
To: java-interest@java.sun.com
Date: Wed, 03 Jan 96 16:19:20 PST
From: Dave Lennert <davel@ibeam.jf.intel.com>
I've asked this previously, but the few that responded misunderstood
and referred me to various FAQ's about multiple clipping regions.
Here goes again. Has anyone else really tried this?
Does someone from Sun know whether this is a Java bug or not?
------- Forwarded Message
> There was a little blurb about using multiple clipping rectangles
> in Oct 13 edition of Digital Espresso, see FAQ Candidates section
> (http://www.io.org/~mentor1/phpl.cgi?jn951013.html#FAQcandidates).
> The question was "How do I use multiple clipping rectangles in JDK".
> I hope that this is of some use.
Thanks for the pointer.
I'm already doing exactly what is recommended there. The problem is
that, while this technique works for the usual Graphics object
(typically obtained as an argument to paint(g)), it doesn't work for an
offscreen memory Graphics object create via:
offscreen = createImage(d.width, d.height);
offgraphics = offscreen.getGraphics();
What happens in this case is that the clipping rectangle established by:
Graphics ng = offgraphics.create( ... );
is now also present in offgraphics, not only in ng!
I assume this is a bug in the implementation of the object returned
from createImage(). But no one has been able to knowledgeably comment
on this so far.
------- End of Forwarded Message
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com