Delphi Color Format for ColorCache
August 16th, 2007 by Paul RobertsRecently a user asked if there was a way to get ColorCache to produce colors in Delphi format:
$00BBGGRR (where BB, GG, and RR are the blue, green and red components of an RGB color)
Happily, the answer was “yes”. ColorCache doesn’t have this format predefined currently, but you can add the format yourself as follows:
- Select Options from the Tools menu (or hit the Options icon on the main toolbar)
- Switch to the Formats tab
- Hit the green “+” button to add a new format
- Provide a title of your own choosing for the new format, and enter the following format string: $00{bh}{gh}{rh}

And that’s it - you’ve defined your own Delphi color format!
Since Delphi’s such a popular development tool we’ll also add the Delphi format as standard in the next release.
You must be logged in to post a comment.