×
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

Raster mode problem

Raster mode problem

Raster mode problem

(OP)

I am quite new to the PCL buissnes, however I tried to
understand how does raster mode works.

What I have to do is to embed tiff images (content only)
with compression mode CCITT G3 (modified Huffman).
I use EscapeE (trial) and an hp laserjet 2300dn, to see
if it prints out corectly, and it doesn't. I used
"*b6M" compression mode. After a lot of failures.. I decided
to decompress the data (unencoded mode) and used "*b0M".
Needles to say it stil didn't work.

Then I wrote these following characters to make a simple
black pattern raster image :

&l27A&l1O*t300RTitle:Hand made image
*b0M *r1A *r3F *r8T *r8S *b8W ÿÿÿÿÿÿÿÿ *rB


(spaces for the sake of clarity)

what happens is that this raster doesn't makes its output
in a matrix, but as a contiguos 64 doted long line.
(both , EscapeE and the HP printer)

Both, handemade image and the tiff, are monocrome images.

Can someone tell me what I am doing wrong ?
thank you

RE: Raster mode problem

If you wanted an 8x8 matrix, that would require 8 separate raster rows. Assuming this is a bi-level file, each byte accounts for 8 pixels. So, ...

<esc>*r1A<esc>*b0M
<esc>*b1Wx
<esc>*b1Wx
...
<esc>*b1Wx 8th row
<esc>*rB

Linefeeds are shown for clarity.

Your TIFF image will first have to be decompressed, and then encoded into PCL format. You can encode it using one of the PCL compression schemes if you want.

PCL does NOT understand fax formats etc. You have to decode your input file to raw raster first, and then put it into a known PCL format.

Jim Asman

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