How to set value of "Text Gamma" ?

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

robertchen
User
Posts: 2
Joined: Sat Jul 10, 2010 3:34 am

How to set value of "Text Gamma" ?

Post by robertchen »

I am using Visual Basic 6 to develop a viewer application, but can not find the sample code to set value of "Text Gamma".
Please help.
Thanks a lot.

Robert
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to set value of "Text Gamma" ?

Post by Vasyl - PDF-XChange »

Hi, Robert.

You may use the one undocumented integer property:

Code: Select all

ax.SetProperty("PageDisplay.TextGamma", 1500, 0);
Values range is: [125, 8000], default value is: 1000. You should modify it before document opening.

Cheers.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.