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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - SetFormFieldBackgroundColor RGB
  FAQ FAQ  Forum Search   Register Register  Login Login

SetFormFieldBackgroundColor RGB

 Post Reply Post Reply
Author
Message Reverse Sort Order
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Topic: SetFormFieldBackgroundColor RGB
    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.

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
jinux View Drop Down
Beginner
Beginner


Joined: 11 Apr 11
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote jinux Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store