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
Post a Comment