RE: [OpenMap Users] alpha channel not supported?

From: Jeroen van Dijk <jeroen_at_sentient.nl>
Date: Thu, 24 May 2007 17:42:39 +0200

John,
 
It will work, at least I got it working, like this:
 
OMGraphic graphic = new OMPoint(1f,1f);
int r = 55; //whatever ff maybe
int g = 0;
int b = 0;
int alpha = 44;
graphic.setFillPaint(new Color(r,g,b,alpha));
 
Good luck!
Jeroen
 
 

________________________________

Van: owner-openmap-users_at_bbn.com namens John Chamberlain
Verzonden: do 24-5-2007 17:06
Aan: openmap-users_at_bbn.com
Onderwerp: [OpenMap Users] alpha channel not supported?



When I set my fill color to a partially transparent value such as:

 0x44ff0000 (RGB)

The resulting image is the correct color but is not transparent. In the
color above the "44" value is the alpha part of the color meaning it has
about 25% opaqueness.

John S. Chamberlain


--
[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"]
--
[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 Thu May 24 2007 - 11:42:58 EDT

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