Hi all,
is it possible to use custom colors for the annotation tools available in the viewer? For all I know it is only possible to use standard RGB colors (white, black, red, green, blue, gray, grey).
To set the color for e.g. the annotation tool 'cloud' I'm using the following code:
Call g_oPdfViewer.SetProperty("Commenting.Cloud.Styles[0].SColor", "blue", 0)
Using this method I wasn't able to set custom colors.
I hope you guys are able to help me with this problem as we desperately need an option for that.
Thank you,
Martin
color management for annotations
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: color management for annotations
Hi, MartinCS.
About RGB type (COLORREF in Windows API): http://msdn.microsoft.com/en-us/library ... 85%29.aspx
HTH
Code: Select all
Dim RGB_val As Integer
RGB_val = RGB(red, green, blue)
Call g_oPdfViewer.SetProperty("Commenting.Cloud.Styles[0].SColor", RGB_val, 0)
HTH
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.