[OpenMap Users] Transparency of OMGraphics - bug?

From: Straub, Daniel <Daniel.Straub_at_cassidian.com>
Date: Fri, 25 May 2012 10:35:51 +0200

Hello,

I've got a problem with OMGraphics as follows:
When adding an OMGraphic to a OMGraphicHandlerLayer, having a
transparent fill-color, the transparency is decreasing over time when
projection changes (zoom in/out or move the map).
For example a OMCircle with the fill-color yellow and an opaqueness of
15 (int) is added to a Layer. Layers underneath the circle can be seen
and get a little touch of the circle's yellow. Then zooming a few times
will result in a more and more opaque circle until no transparency is
left.

For setting the color i tried java.awt.Color and
com.bbn.openmap.omGraphics.OMColor. Both with the same results.
I use the following code:
                OMCircle testCircle = new OMCircle(0.0, 10.0, 20.0);
                testCircle.setFillPaint(new Color(255, 255, 0, 15)); //
with 15 being the opaqueness
                testCircle.setSelectPaint(Color.YELLOW);
                testCircle.setLinePaint(Color.BLUE);
                graphics.add(testCircle);

I'm using OpenMap 5.0.

Does anyone know about this problem or how to solve it?

Thanks in advance for any information or help.
Daniel Straub


--
[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 Fri May 25 2012 - 04:37:16 EDT

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