Matias,
If you use a buffered image with alpha channel for the "oval" image, you
can do it. Just use TYPE_INT_ARGB for the buffered image, fill it with a
color that sets alpha to "0", then draw your oval in whatever color you
like. Then, you can simply draw it into your main image.

David

Matias Rodriguez wrote:

>Hello, I have an application which draws a lot of Shapes, circles being one
>of the most common. I believe that circles are expensive to draw (compared
>with rectangles). Because most of the circles have the same size, I think
>it will be fast to draw only one (draw/fillOval) and blit it in the propper
>places. So the question is:  How can I make the background transparent? Am
>I right? is this faster than draw/fillOval?
>
>Thanks.
>Mat�as Rodriguez.
>
>===========================================================================
>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".
>

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