Guys,

I have been trying to track down the cause of the pixel dust (and much
worse) that
occurs when the canvas window gets uncovered by another window.

As best as I can determine, the following is what is occurring:

When drawing is done in "source-over" mode, what you see drawn in the canvas
window is being drawn identically in the buffered image.  When this data is
covered by another window and then uncovered, the image returns just as it
was before the interaction with the second window.  If you "select" a piece
of
data so that it is erased in its color and then redrawn in white, the
erasure is
not occurring in the buffered image.  In fact, the data is drawn 1 pixel to
the left
and 1 pixel up from the original location producing the original shape 2
pixels
wide.  The shape is also drawn in white in this new location.  Covering and
exposing the canvas window reveals this shape drawn in both colors.  I
verified
this by commenting out the line that draws the shape in white.

The bottom line is that XOR mode draws in a shifted location only in the
buffered
image.

Any thoughts?


---
Thomas McKay

Project Leader
Microcosm Technologies, Inc.
mailto:[EMAIL PROTECTED]

===========================================================================
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