IIXC_Page Set_TransparentColor how to define color as integer  SOLVED

PDF-XChange Editor SDK for Developers

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

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: 1370
Joined: Thu Sep 05, 2019 12:35 pm

IIXC_Page Set_TransparentColor how to define color as integer

Post by zarkogajic »

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: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: IIXC_Page Set_TransparentColor how to define color as integer

Post by zarkogajic »

Hi support,

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

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

-žarko
Sasha - Tracker Dev Team
User
Posts: 5522
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 »

Hello žarko,

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

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: IIXC_Page Set_TransparentColor how to define color as integer

Post by zarkogajic »

Hi Alex,

Thanks.

Sasha - Tracker Dev Team
User
Posts: 5522
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 »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply