Print Page | Close Window

SetFormFieldBackgroundColor RGB

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1800
Printed Date: 27 Jul 26 at 1:42PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: SetFormFieldBackgroundColor RGB
Posted By: jinux
Subject: SetFormFieldBackgroundColor RGB
Date Posted: 11 Apr 11 at 11:44AM
If I set SetFormFieldBackgroundColor(index, 255, 0, 0) it works but if I modify to SetFormFieldBackgroundColor(index, 255, 102, 102) the color is not set.
Now I use SetFormFieldBackgroundColorCMYK and it works but the RGB function should be corrected.
 
Regards
jinux



Replies:
Posted By: Ingo
Date Posted: 11 Apr 11 at 12:08PM
Hi Jinux!

So you're working on an existing pdf-form and it's created with the color model "CMYK" only?
For real bugs please use the official support pages.

Cheers, Ingo



Posted By: AndrewC
Date Posted: 11 Apr 11 at 2:45PM
From the QPL Manual - "SetFormFieldBackgroundColor()

Sets the background color of the specified form field. The values of the color parameters range
from 0 to 1, with 0 indicating 0% and 1 indicating 100% of the color."

So you would need to call SetFormFieldBackgroundColor(index, 255/255, 102/255, 102/255) to get it to set the color correctly.

Andrew.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk