how to convert color integer value to hex

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

how to convert color integer value to hex

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:27 pm

by Scott >> Mon, 3 Nov 2003 7:57:01 GMT

Hi
We need convert color integer value to Hex, Who has a method to do it?

I'd appreciated if someone can provide us the method.

Regards,
Scott
Bizpoint System Pte Ltd

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: how to convert color integer value to hex

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:27 pm

by Torrie >> Mon, 3 Nov 2003 13:31:25 GMT

Try the hidden method convertToHex defined for the Integer type, eg

write 256.convertToHex;

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: how to convert color integer value to hex

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:27 pm

by cnwdad1 >> Mon, 3 Nov 2003 20:06:59 GMT

Scott,

The attached zip file contains two methods - load them into your schema using the Advanced options of the schema (method) load to set the target schema, and they will appear in your Integer primitive's list of methods. Call the cnEcGetHexColor() method to return the hex value of the integer receiver.

regards,
darrell.
Attachments
3180_1.zip
(1.3 KiB) Downloaded 94 times
Last edited by ConvertFromOldNGs on Fri Aug 07, 2009 4:07 pm, edited 1 time in total.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: how to convert color integer value to hex

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:27 pm

by Scott >> Tue, 4 Nov 2003 7:42:25 GMT

Hi Darrell and Torrie,
Thanks for your helps.
They both can work for my system.

Regards,
Scott


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 11 guests