Re: [OpenMap Users] Opaque OMCircle

From: Christian Weaves <christian.weaves_at_fugro-robertson.com>
Date: Wed, 07 Jul 2004 17:03:11 +0100

You can make the circle transparent by using the following:

OMCircle fovCircle = new OMCircle(latitude, longitude,newRadius);
        fovCircle.setLatLon(latitude, longitude);
        fovCircle.setRadius(newRadius);
        fovCircle.setFillPaint(new Color(255, 0, 0, 128));
        fovCircle.setLinePaint(Color.white);
        renderList.add(fovCircle);

The first 3 values are the r,g,b values and the fourth value (128) is
the transparency value, this ranges between 0-255.

Hope this helps!


On Wed, 2004-07-07 at 16:00, Norfleet, Timothy wrote:
> Hi all,
> Can anyone give me suggestion on how to make my fill color Opaque
> using the code below? I can make it solid but not opaque.
>
>
> OMCircle fovCircle = new OMCircle(latitude, longitude,newRadius);
> fovCircle.setLatLon(latitude, longitude);
> fovCircle.setRadius(newRadius);
> fovCircle.setFillPaint(Color.green);
> fovCircle.setLinePaint(Color.white);
> renderList.add(fovCircle);
>
> tim
>

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jul 07 2004 - 12:03:39 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:05 EDT