Delphi reproduce OLE_COLOR -


trying reproduce ole_color translating value can use in delphi. particular need reproduce outlook olcategorycolor. can read integer: yellow gives 4641276, example, doesn't resemble equivalent of yellow can find. gather system.drawing has colorconverter method should trick, version of delphi (10 seattle) doesn't seem have system.drawing. appears available in delphi 7, , 1 add delphi 8 adding .dll project references, seattle doesn't seem have project references. thank always.

the helper function colortorgb graphics unit converts ole color rgb. tests high bit being set, , if calls getsyscolor passing index encoded in rest of value.

however, color value of 4641276 not of form. in hex $0046d1fc. plain rgb value.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -