Groups
Sign in
Groups
PDFTron SDK
Conversations
Labels
About
Send feedback
Help
How to convert System.Drawings.Color to ColorPt?
32 views
Skip to first unread message
V
unread,
Sep 25, 2017, 12:14:24 PM
9/25/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PDFTron PDFNet SDK
Given:
var myColor = new System.Drawing.Color.FromArgb(64, 64, 64); //can be any value x,y,z
then what should be newColor = new ColorPt(?,?,?);
That is, how to convert 'myColor' to ColorPt?
Regards,
Ryan
unread,
Sep 26, 2017, 4:44:51 PM
9/26/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PDFTron PDFNet SDK
ColorPt values are from [0.0-1.0], so you would divide your values by 255 to get a value from 0-1.
Reply all
Reply to author
Forward
0 new messages