Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Is this intended to be in the SDK forums? you seem to have posted on the End user Forums instead. Please let me know which SDK this is pertaining to and I can move the topic to the appropriate forum for you.
Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
public static Color rgb2clr(int c)
{
int r = c & 0x000000FF;
int g = (c & 0x0000FF00) >> 8;
int b = (c & 0x00FF0000) >> 16;
return Color.FromArgb(r, g, b);
}
Sorry to bring this forum back up again, however I'm not sure if I am passing the correct value to get converted (I am using the following value annot.Data.Color.RGB which is returning a value example of 4282400768) as I get the following error:
I'm sure I am doing something stupid, but am unsure as to how to convert the color and what value to use?
Thanks for the information however what property do I get that colour value from on the annotation item as there is no property that returns that value, see screen shot:
Public Function IColorToColor(ByVal IColourRGB As UInteger) As Color
Dim hexColour As String = Hex(IColourRGB)
hexColour = hexColour.Substring(hexColour.Length - 6)
Dim r As String = hexColour.Substring(4, 2)
Dim g As String = hexColour.Substring(2, 2)
Dim b As String = hexColour.Substring(0, 2)
Return ColorTranslator.FromHtml("#" & r & g & b)
End Function