How to convert System.Drawings.Color to ColorPt?

32 views
Skip to first unread message

V

unread,
Sep 25, 2017, 12:14:24 PM9/25/17
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 PM9/26/17
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