ItextSharp - Color Value Outside Range Error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ItextSharp - Color Value Outside Range Error

Kreusch, Doug K

I am getting the error message “Color value outside range 0-255” with the following code:

         template.SetRGBColorFillF(0xFF, 0xFF, 0xFF);

Isn’t “0xFF” = 255?

 

Also, I get the same error with any value greater than “0x01”.


Any suggestions?

 

Thanks,

Doug




This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.

If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer R001.0

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Reply | Threaded
Open this post in threaded view
|

Re: ItextSharp - Color Value Outside Range Error

iText mailing list
On 6/23/2015 23:09 PM, Kreusch, Doug K wrote:

I am getting the error message “Color value outside range 0-255” with the following code:

         template.SetRGBColorFillF(0xFF, 0xFF, 0xFF);

Isn’t “0xFF” = 255?

 

Also, I get the same error with any value greater than “0x01”.


1. The mailing-list has been abandoned, please consult http://itextpdf.com/support for more info.
2. Take a close look at your method: you are using SetRGBColorFillF() instead of SetRGBColorFill(). Do you see the difference? One has an F, the other one doesn't. The F stands for Float. That method expects Float values between 0 and 1; the other method expects Integer values between 0 and 255.

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
iText-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php