Erasing a line
- From: "Kenneth P. Turvey" <kt-usenet@xxxxxxxxxxxxxxxxxx>
- Date: 16 May 2008 22:57:04 GMT
I'm using antialiasing and transparency in an app I'm writing and I'm
running into some difficulty with the intersection of the two.
Let me work up an example and post it here..
Ok. Well this is no good.
I just wrote a SSCE and it doesn't display the issue I'm having. I also
can't seem to locate where in my code it is happening.
Maybe if I describe it someone might be able to give me an idea of where
to look. I know this is a long shot. Feel free to guess.
I have an image and on top of it I draw a line with AlphaComposite.CLEAR
to clear it. I do this a number of times so I have a clear area on the
image.
Then I draw another line in black that is partially overlapping my
cleared area with anti-aliasing on.
What I see is that the portion of the line that isn't overlapping the
cleared area is anti-aliased just fine, but the portion that is
overlapping the cleared area is not.
Any guesses as to what I should be looking for in my code. Note, the
image is getting passed around and copied during the operation. It isn't
all quite as simple as I'm stating or it would be easy to find. The
important point is that the image in black is drawn in one call to
graphics.drawLine(). I should also note that anti-aliasing isn't working
for the clear line drawn either. It is only working for the portion of
the black line that isn't drawn on top of a transparent portion of the
image.
Thanks for any help you can provide with this poor problem description.
--
Kenneth P. Turvey <kt-usenet@xxxxxxxxxxxxxxxxxx>
.
- Follow-Ups:
- Re: Erasing a line
- From: Knute Johnson
- Re: Erasing a line
- Prev by Date: Re: Problems with JTabbedPane
- Next by Date: Re: Problems with JTabbedPane
- Previous by thread: Problems with JTabbedPane
- Next by thread: Re: Erasing a line
- Index(es):
Relevant Pages
|