Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
PDFLibrary SetTextColor to Black |
Post Reply ![]() |
Author | |
ebassador ![]() Beginner ![]() ![]() Joined: 08 May 14 Location: California Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 16 May 14 at 6:05PM |
I used SetTextColor(1,0,0) to change to RED text. It work fine. Now, on the same document, I want to switch back to BLACK. SetTextColor(1,1,1) doesn't work. It gives me white (invisible) color instead.
![]() ![]() |
|
![]() |
|
ebassador ![]() Beginner ![]() ![]() Joined: 08 May 14 Location: California Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
I tried something counter intuitive to me: SetTextColor(0,0,0). It is how you choose BLACK. Problem resolved.
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
The 3 values are RGB values between 0 and 1. Other libraries use a range of 0 and 255.
0,0,0 = Black (0% red, 0% green, 0% blue) 1,1,1 = White (100% red, 100% green, 100% blue) 1,0,0 = Red (100% red, 0% green, 0% blue) Andrew. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store