Hello,
 I create a PDF page with background CMYK = 0,0,0,255 (full black). Next I 
create a CMYK image (same CMYK values) and put it onto the page.When I open the 
PDF on screen, this is OK, but when printed, it seems the image is "deeper" 
black than the background. PS: this issue is related to my previous one. 
Creating the background:            PdfContentByte under = 
writer.DirectContentUnder;
            under.SaveState();
            under.SetCMYKColorFill(0,0,0,255); //CMYK value for black
            under.Rectangle(0, 0, PageSize.A4.Width, PageSize.A4.Height);
            under.Fill();
 Creating the image:            byte[] gradient = new byte[255 * 4];
            for (int lcv = 0; lcv < 256; lcv++)
            {
                gradient[lcv * 4 + 0] = 0;
                gradient[lcv * 4 + 1] = 0;
                gradient[lcv * 4 + 2] = 0;
                gradient[lcv * 4 + 3] = 255; // (byte)lcv;
            }
            Image result = Image.GetInstance(256, 1, 4, 8, gradient);
            result.ScaleAbsolute(256, 50);
 Thanks !                                         
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
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