Replicating annotation color else where

Discussions about annotation support.
Post Reply
KevinLK
Posts: 15
Joined: Wed Jan 13, 2016 5:08 pm

Replicating annotation color else where

Post by KevinLK » Wed Jan 13, 2016 5:15 pm

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Replicating annotation color else where

Post by Loïc » Sat Jan 16, 2016 6:08 pm

Hi,

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

Kind regards,

Loïc

KevinLK
Posts: 15
Joined: Wed Jan 13, 2016 5:08 pm

Re: Replicating annotation color else where

Post by KevinLK » Tue Jan 26, 2016 12:25 pm

Ahhhh .. Thank you very much :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest