Board index » delphi » How To Convert a Hex Value To a TColor

How To Convert a Hex Value To a TColor

It might also be worth noting that a color in the form:
    RRGGBB

converts to Delphi:
    $00BBGGRR

Bass-ackwards

Quote
"Jeff Kreider" <tecbuil...@yahoo.com> wrote in message

news:3d9a08f3$1@newsgroups.borland.com...
Quote
> I have a hex value say FF00FF.  How do I convert this to a color?

> --
> Jeff Kreider

 

Re:How To Convert a Hex Value To a TColor


Quote
"Ian Boyd" <ian.msnews...@avatopia.com> wrote in message

news:3da3726d$1@newsgroups.borland.com...

Quote
> It might also be worth noting that a color in the form:
>     RRGGBB

> converts to Delphi:
>     $00BBGGRR

> Bass-ackwards

Or just a "little endian" integer.

--
efg -- Earl F. Glynn, Overland Park, KS  USA

efg's Computer Lab:  http://www.efg2.com/Lab
Mirror:  http://homepages.borland.com/efg2lab/Default.htm

Re:How To Convert a Hex Value To a TColor


Is that efg2 himself!

Love your site.

"Earl F. Glynn" <e...@efg2.com> wrote in message
news:3da3850a$1@newsgroups.borland.com...

Quote
> "Ian Boyd" <ian.msnews...@avatopia.com> wrote in message
> news:3da3726d$1@newsgroups.borland.com...
> > It might also be worth noting that a color in the form:
> >     RRGGBB

> > converts to Delphi:
> >     $00BBGGRR

> > Bass-ackwards

> Or just a "little endian" integer.

> --
> efg -- Earl F. Glynn, Overland Park, KS  USA

> efg's Computer Lab:  http://www.efg2.com/Lab
> Mirror:  http://homepages.borland.com/efg2lab/Default.htm

Other Threads