×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

PCL Colour Raster Problem

PCL Colour Raster Problem

PCL Colour Raster Problem

(OP)
Dear all, I have a block of data that is basically a BMP file without the header which I believe to be of the format RGBRGBRGB etc. I am trying to output this in PCL without much joy, I am getting a red block with assorted garbage within. Any help would be appreciated, the PCL looks something like this:

<Esc>*v6W    Configure image data = 6
{<NUL><ETX><NUL><BS><BS><BS>}
<Esc>*t75R    Raster resolution 75 dots per inch
<Esc>*r160s    Raster width = 160 pixels at current resolution
160T        Raster height = 160 raster rows
<Esc>*r3U    Number of planes per row = 3
<Esc>*b0M    Raster compression mode, unencoded
<Esc>*r1A    Start raster graphics at current cursor
<Esc>*b480W    Transfer 480 bytes of raster data
      0  1  2  3  4  5  6  7 -  8  9  A  B  C  D  E  F   0123456789ABCDEF
0000 FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF   ................

Thanks!

RE: PCL Colour Raster Problem

The raster image has to be encapsulated and transformed into a PCL format.

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:

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl04568

The PCL5 Technical Reference manual describes various monochrome raster formats (unencoded, Run-Length Compression, Tagged Image File Format, Delta-Row Compression, Adaptive Compression, etc.).

The Colour Technical Reference manual expands on this to describe how colour raster images are encoded.

Be aware that some of the manuals (in PDF format) are multi-megabyte downloads.

RE: PCL Colour Raster Problem

(OP)
I fully understand the PCL monochrome raster format and have read the Colour Tech Ref, most of the above PCL is taken from this.

As can be seen from the CID command, I am trying to output a colour image as Mode 3: Direct By Pixel (page 2-11), this shouldn't require any transformation unless my understanding is wrong?

RE: PCL Colour Raster Problem

Get rid of the <esc>*r3U.

You would appear to be using a single plane 24 bits/pixel.

Jim Asman

RE: PCL Colour Raster Problem

(OP)
Hi, cheers, yes that was one problem along with the order I was reading the image bytes. Thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close