IIXC_Page Set_TransparentColor how to define color as integer  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

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.
Post Reply
zarkogajic
User
Posts: 674
Joined: Thu Sep 05, 2019 12:35 pm

IIXC_Page Set_TransparentColor how to define color as integer

Post by zarkogajic » Wed Feb 05, 2020 11:58 am

Hi support,

How to define color value as integer?

Example: IIXC_Page.TransparentColor receives a long word - what would be "red" (#ff0000)?

-žarko

zarkogajic
User
Posts: 674
Joined: Thu Sep 05, 2019 12:35 pm

Re: IIXC_Page Set_TransparentColor how to define color as integer

Post by zarkogajic » Wed Feb 05, 2020 12:21 pm

Hi support,

Seems like simple conversion from hex to dec, but do confirm ... ?

Example: #FF00FF (magenta) would be (int) 16711935 .

-žarko

User avatar
Sasha - Tracker Dev Team
User
Posts: 4965
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: IIXC_Page Set_TransparentColor how to define color as integer  SOLVED

Post by Sasha - Tracker Dev Team » Wed Feb 05, 2020 1:45 pm

Hello žarko,

It takes COLORREF as an argument so basically you can pass any color for example in 0xFF00FF format.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

zarkogajic
User
Posts: 674
Joined: Thu Sep 05, 2019 12:35 pm

Re: IIXC_Page Set_TransparentColor how to define color as integer

Post by zarkogajic » Wed Feb 05, 2020 2:05 pm

Hi Alex,

Thanks.


User avatar
Sasha - Tracker Dev Team
User
Posts: 4965
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: IIXC_Page Set_TransparentColor how to define color as integer

Post by Sasha - Tracker Dev Team » Wed Feb 05, 2020 2:12 pm

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply