10-03-2013 07:19 AM - edited 10-03-2013 07:28 AM
I have a gray scale bitmap image ( Sample gray scale image is attached).
I need to show this gray scale image in pcl file using PCL5 commands.
can any one provide a codesnippet / guidelines to implement this.
Thanks in advance
10-03-2013 12:54 PM
PCL5 printer launguage technical reference manual:
Everything you need to know about programing in PCL5 can be found there.
10-04-2013 02:26 AM
Your Grayscale_1_.bmp.txt file is not a .bmp bitmap image file - it is a Portable Network Graphics .png format file.
If you convert this .png file to a .bmp format (e.g. open using Paint, then SaveAs to save in .bmp format), then you could use the Image Bitmap tool in the PCL Paraphernalia application (available via http://www.pclparaphernalia.eu ) to convert the .bmp file to a file containing a PCL5 raster image.
You could then use the PRN File Analyse tool in the same application to decode the generated PCL in that file.
10-06-2013 10:57 PM
Yes, you are right this is a .png file and we wrongly changed the extension to .bmp.
Can you please provide some code snippet/guidlines to display this image using PCL5?
10-07-2013 08:48 AM
HP publish details of the PCL raster format in the PCL5 Technical Reference manual.
The following link provides a brief history of the PCL language, and links to the PCL Technical Reference manual, and also to other PCL5 & PJL manuals:
Be aware that some of the manuals (in PDF format) are multi-megabyte downloads.
I have very little knowledge of the .png format, but I'm fairly sure that details of the format are published somewhere.
I think that Microsoft publish details of the .bmp format; the most common variant is version 3, but there are later (less-used v4 and v5) and obsolete (OS/2) versions, so you will need to decide whether or not to support all variants.
Doing the conversion from (v3) .bmp to PCL raster format is not a trivial process; it it is too complex a task to try to post code snippets - and anyway, even if someone was willing to do this, you'd ideally need to specify what programming language you will be using.