Op 20/12/2010 6:44, sam_dev schreef: > Can any one help me for the conversion of raw array of color values to proper > images like(bmp,png,jpeg etc). Is their any API or library for the > conversion of bytes of color values to images.Your help is really > appreciated. What you are asking for is impossible.
Let me explain: you have a raw array of color values, but: - how many components are there? 1 (gray), 3 (RGB), 4 (CMYK)? - how many bits per component are there? - what is the width and the height of this image? Without any of the above parameters, no software can ever guess what the raw bytes mean. However, if you have these parameters, you can use this class to create an image file: http://api.itextpdf.com/com/itextpdf/text/pdf/PdfImage.html By the way: PLEASE SUBSCRIBE to the mailing list. Not subscribing means you're mail can get lost in the huge load of SPAM we're receiving. It can also mean you don't receive useful answers. It certainly means you're giving us administrative work we prefer to avoid. ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions 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
