Page 1 of 1

Replicating annotation color else where

Posted: Wed Jan 13, 2016 5:15 pm
by KevinLK
Hi

Im currently working on saving annotations to an XML file, so i have the ability to use them elsewhere.
I discovered a problem though when saving.
The value inside the color nodes doesn't make much sense to me.

Code: Select all

<StrokeColor>-65536</StrokeColor>
<FillColor>-16777216</FillColor>
Is there a specific logic behind these "color codes", so i can converd them?

Thanks in advance

Regards, Kevin

Re: Replicating annotation color else where

Posted: Sat Jan 16, 2016 6:08 pm
by Loïc
Hi,

This is the color value encoded into an integer.
Ref: https://msdn.microsoft.com/library/syst ... .110).aspx

Kind regards,

Loïc

Re: Replicating annotation color else where

Posted: Tue Jan 26, 2016 12:25 pm
by KevinLK
Ahhhh .. Thank you very much :)