Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Raster mode problem

Status
Not open for further replies.

palovidiu

Programmer
Nov 30, 2005
14
0
0
RO

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

 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top