Yesterday I posted a question about edge detection.

What was happening was that only the outer-most edge of my image was being
detected.

I have since changed the basic type of both the source and destination
BufferedImage to TYPE_INT_RGB instead of
TYPE_INT_ARGB. Now the inner edges also get detected.

So now what I get is an image that is all black except for the edges. What I
really want is an image that is entirely transparent except for the edges.

Is there some way to make the black part of the TYPE_INT_RGB image
transparent directly? Or do I need to do a second step where I convert the
TYPE_INT_RGB with black background to an ARGB with transparent background?

Also, is there some way to derive a GeneralPath from a detected edge? So for
example, I could do the edge detection, then use the GeneralPath of each
edge to modify the BasicStroke, etc.

Thank you,

Ted Hill

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