[OpenMap Users] Writing drawingattributes properties

From: chris van lith <chrisvanlith_at_b3partners.nl>
Date: Sun, 22 Aug 2004 14:00:15 +0200

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
            while (hexstring.length()<8) hexstring.insert(0,'0');

[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:00:59 EDT

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