Erasing a line



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



Relevant Pages

  • Re: Erasing a line
    ... 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. ... 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. ...
    (comp.lang.java.gui)
  • OT - Late 60s era science fiction comic book series
    ... portion of the vehicle was topped by a large dome-shaped transparency ... a major role in vehicle propulsion. ... these vertical components had two hangers for space shuttles that ...
    (sci.space.history)
  • Re: Pub 2003 - Transparency in overlapping pics?
    ... If you are using a photo or other bitmap images you will have to set the transparency ... Bring the original and the transparent image into Publisher, Stack the two, crop the ... transparent image to where it overlaps, send the original to the back. ... > Where a portion of one picture is on top of another, ...
    (microsoft.public.publisher)