Thanks for the heads-up!
- Don
On Aug 22, 2004, at 8:00 AM, chris van lith wrote:
> Hello List,
>
> Found another small bug while writing out drawing attribute properties.
> In function getProperties the
> Integer.toHexString(((Color)somePaint).getRGB()) function returns a
> string with no positions for the alpha value, in case alpha = 0. When
> reading this back in it will default to an alpha value of 1, just the
> opposite.
>
> So I prepadded some zeros to get the correct effect:
>
> StringBuffer hexstring = new
> StringBuffer(Integer.toHexString(((Color)somePaint).getRGB()));
> while (hexstring.length()<8) hexstring.insert(0,'0');
>
> Regards
>
> Chris
>
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
[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 Sun Aug 22 2004 - 08:28:24 EDT