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
iText-questions@lists.sourceforge.net
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 via email to