PDA

View Full Version : Annotation and transparency


ayman
02-28-2008, 07:07 PM
I have WWIcon when the user click on it an Annotation appears with transparency, if the user click again on the icon or any other one the transparency becomes darker and darker, until annotation displayed as if there is no transparency. every time the user click I create new Annotation and set the transparency using this code;
getAttributes().setBackgroundColor(new Color(1, 1, 1, 0.6f));

patmurris
02-28-2008, 08:26 PM
There are different ways to have transparency in annotations. Each 'layer' has its own (Text color, background color, background image) and there is also an overall opacity attribute... Try to play with those.