oh gawd. i remember futzing with maintaining colour consistency across
multiple packages (VB/office, web, MI...) ages ago. i can't remember
everything i did, but if you're using SVG then you might be best off
converting the colours to HEX.
the colour numbers don't properly correspond between VB and MI, sometimes
they're close, sometimes opposite ends of the spectrum.
here's something i use in VB/VBA to convert MS colours to HEX, it might be a
starting point:
###########
Function VBColourToHTML(KullaNumba As Long) As String
Dim HexKulla As String
HexKulla = right$("000000" & Hex$(KullaNumba), 6)
HexKulla = right$(HexKulla, 2) & _
Mid$(HexKulla, 3, 2) & _
left$(HexKulla, 2)
VBColourToHTML = HexKulla
End Function
###########
-----Original Message-----
From: Ben Crane [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 27 July 2004 9:05 PM
To: [EMAIL PROTECTED]
Subject: MI-L RGB and styleattr problem
Hi all,
I am using ObjectInfo() and StyleAttr to return the
foreground colours of a grid. Each grid is a different
colour and I want individual RGB values for EACH grid.
I get an RGB value such as 16777215 (supposed to be
white) and 255 (red) but when I code it into SVG for
display purposes it doesn't work out (I get a
universal red colouring)
What am I missing, each grid value comes back with a
unique RGD number...but when I use the RGB value for
coluring a grid in SVG, it doesn't appear as I want it
to. My SVG is solid, I'm wondering whether the value
from MI is wrong...anyone had any experience with
this?
Regards
Ben
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12742
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12757