Do you mean translucent? If so, you can modify the alpha channel of your
fill paint. For instance, the code below will give you 50% translucency. The
alpha value can be anything between 0-255.
int alpha = 128;
Color c = new Color(Color.green.getRed(), Color.green.getGreen(),
Color.green.getBlue(), alpha);
- Chris
-----Original Message-----
From: Norfleet, Timothy [mailto:timothy.norfleet_at_gd-ais.com]
Sent: Wednesday, July 07, 2004 11:00 AM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] Opaque OMCircle
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 - 11:27:17 EDT