Hi, All,

I create a 8*8 bytes, 256 RGB BMP file (use Paint of Windows), and use
HP printer printed it to files (PCL 5e). I studied the PCL file and find the
data field. I can not understand what dose it mean. Need someone's help.
Thanks!

The BMP file I filled in red, and the BMP file in Hex code, Dard red is
2. I can read 32 bytes (22) in the BMP file.

And the PCL 5e file in Hex, I don't understand the Hex indicated red
color.

(Esc * b # W [raster data], referenced by PCL 5 Printer LanguageTechnical
Reference Manual)

1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means Esc*b4W)
1B 2A 62 34 57 FA 7F 00 60
1B 2A 62 34 57 FA 3F 00 20
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
1B 2A 62 34 57 FA F3 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA 7F 00 60
1B 2A 62 34 57 FA 3F 00 20
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
1B 2A 62 34 57 FA F3 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA 7F 00 60
1B 2A 62 34 57 FA 3F 00 20
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
1B 2A 62 34 57 FA F3 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA 7F 00 60
1B 2A 62 34 57 FA 3F 00 20
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
1B 2A 62 34 57 FA F3 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA 7F 00 60
1B 2A 62 34 57 FA 3F 00 20
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
1B 2A 62 34 57 FA F3 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA 7F 00 60
1B 2A 62 34 57 FA 3F 00 20
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
1B 2A 62 34 57 FA F3 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA 7F 00 60
1B 2A 62 34 57 FA 3F 00 20
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
1B 2A 62 34 57 FA F3 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA FF 00 E0
1B 2A 62 34 57 FA 7F 00 60
1B 2A 62 34 57 FA 3F 00 20
1B 2A 72 43 1B 26 61 30 50

There is something in order in the above Hex, would you tell me the
detail?

--
Thanks & Regards
Daniel

Re: BMP format & PCL format by vipin

vipin
Thu May 27 06:05:26 CDT 2004

Somwthing is wrong here? looks like your question itself:-

what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8 pixels high?

Can you do something as simple as this and see your output.:-

HDC memdc =CreateCompatibleDC(hdc);
HBITMAP hbm = CreateCompatibleBitmap(memdc,8,8);
SelectObject(memdc , hbm);

StartDoc(...)
StartPage(...)
BitBlt(hdc,0,0,8,8,SRCCOPY);
EndPage(...)
EndDoc(...)


BTW "4" in the escape means 4 bytes of data follows.

vipin(vprnt at lycos dot com)

"Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
news:Oy9g338QEHA.2468@tk2msftngp13.phx.gbl...
> Hi, All,
>
> I create a 8*8 bytes, 256 RGB BMP file (use Paint of Windows), and use
> HP printer printed it to files (PCL 5e). I studied the PCL file and find
the
> data field. I can not understand what dose it mean. Need someone's help.
> Thanks!
>
> The BMP file I filled in red, and the BMP file in Hex code, Dard red
is
> 2. I can read 32 bytes (22) in the BMP file.
>
> And the PCL 5e file in Hex, I don't understand the Hex indicated red
> color.
>
> (Esc * b # W [raster data], referenced by PCL 5 Printer LanguageTechnical
> Reference Manual)
>
> 1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means Esc*b4W)
> 1B 2A 62 34 57 FA 7F 00 60
> 1B 2A 62 34 57 FA 3F 00 20
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> 1B 2A 62 34 57 FA F3 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA 7F 00 60
> 1B 2A 62 34 57 FA 3F 00 20
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> 1B 2A 62 34 57 FA F3 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA 7F 00 60
> 1B 2A 62 34 57 FA 3F 00 20
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> 1B 2A 62 34 57 FA F3 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA 7F 00 60
> 1B 2A 62 34 57 FA 3F 00 20
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> 1B 2A 62 34 57 FA F3 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA 7F 00 60
> 1B 2A 62 34 57 FA 3F 00 20
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> 1B 2A 62 34 57 FA F3 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA 7F 00 60
> 1B 2A 62 34 57 FA 3F 00 20
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> 1B 2A 62 34 57 FA F3 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA 7F 00 60
> 1B 2A 62 34 57 FA 3F 00 20
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> 1B 2A 62 34 57 FA F3 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA FF 00 E0
> 1B 2A 62 34 57 FA 7F 00 60
> 1B 2A 62 34 57 FA 3F 00 20
> 1B 2A 72 43 1B 26 61 30 50
>
> There is something in order in the above Hex, would you tell me the
> detail?
>
> --
> Thanks & Regards
> Daniel
>
>
>



Re: BMP format & PCL format by Daniel

Daniel
Thu May 27 06:22:05 CDT 2004

Hi,vipin,

> what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8 pixels high?
Yes, it is.

> Can you do something as simple as this and see your output.:-
Okay, thinks very much. I'll try it. But I'm not sure I could use
windows API functions, maybe I have to write my own API function. This is
very terrible. :(

> vipin(vprnt at lycos dot com)
What is it?

Best Regards
Daniel


"vipin" <vipin@nospam.com> дÈëÏûÏ¢ÐÂÎÅ
:#b1yZk9QEHA.3012@tk2msftngp13.phx.gbl...
> Somwthing is wrong here? looks like your question itself:-
>
> what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8 pixels high?
>
> Can you do something as simple as this and see your output.:-
>
> HDC memdc =CreateCompatibleDC(hdc);
> HBITMAP hbm = CreateCompatibleBitmap(memdc,8,8);
> SelectObject(memdc , hbm);
>
> StartDoc(...)
> StartPage(...)
> BitBlt(hdc,0,0,8,8,SRCCOPY);
> EndPage(...)
> EndDoc(...)
>
>
> BTW "4" in the escape means 4 bytes of data follows.
>
> vipin(vprnt at lycos dot com)
>
> "Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
> news:Oy9g338QEHA.2468@tk2msftngp13.phx.gbl...
> > Hi, All,
> >
> > I create a 8*8 bytes, 256 RGB BMP file (use Paint of Windows), and
use
> > HP printer printed it to files (PCL 5e). I studied the PCL file and find
> the
> > data field. I can not understand what dose it mean. Need someone's help.
> > Thanks!
> >
> > The BMP file I filled in red, and the BMP file in Hex code, Dard red
> is
> > 2. I can read 32 bytes (22) in the BMP file.
> >
> > And the PCL 5e file in Hex, I don't understand the Hex indicated red
> > color.
> >
> > (Esc * b # W [raster data], referenced by PCL 5 Printer
LanguageTechnical
> > Reference Manual)
> >
> > 1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means Esc*b4W)
> > 1B 2A 62 34 57 FA 7F 00 60
> > 1B 2A 62 34 57 FA 3F 00 20
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > 1B 2A 62 34 57 FA F3 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA 7F 00 60
> > 1B 2A 62 34 57 FA 3F 00 20
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > 1B 2A 62 34 57 FA F3 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA 7F 00 60
> > 1B 2A 62 34 57 FA 3F 00 20
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > 1B 2A 62 34 57 FA F3 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA 7F 00 60
> > 1B 2A 62 34 57 FA 3F 00 20
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > 1B 2A 62 34 57 FA F3 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA 7F 00 60
> > 1B 2A 62 34 57 FA 3F 00 20
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > 1B 2A 62 34 57 FA F3 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA 7F 00 60
> > 1B 2A 62 34 57 FA 3F 00 20
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > 1B 2A 62 34 57 FA F3 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA 7F 00 60
> > 1B 2A 62 34 57 FA 3F 00 20
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > 1B 2A 62 34 57 FA F3 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA FF 00 E0
> > 1B 2A 62 34 57 FA 7F 00 60
> > 1B 2A 62 34 57 FA 3F 00 20
> > 1B 2A 72 43 1B 26 61 30 50
> >
> > There is something in order in the above Hex, would you tell me the
> > detail?
> >
> > --
> > Thanks & Regards
> > Daniel
> >
> >
> >
>
>



Re: BMP format & PCL format by vipin

vipin
Thu May 27 09:26:32 CDT 2004

Install a printer driver on windows system, write the applicaiton, print on
the driver and
examine the output.

thanks
vipin


"Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
news:#SKzqw9QEHA.3744@TK2MSFTNGP10.phx.gbl...
> Hi,vipin,
>
> > what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8 pixels
high?
> Yes, it is.
>
> > Can you do something as simple as this and see your output.:-
> Okay, thinks very much. I'll try it. But I'm not sure I could use
> windows API functions, maybe I have to write my own API function. This is
> very terrible. :(
>
> > vipin(vprnt at lycos dot com)
> What is it?
>
> Best Regards
> Daniel
>
>
> "vipin" <vipin@nospam.com> дÈëÏûÏ¢ÐÂÎÅ
> :#b1yZk9QEHA.3012@tk2msftngp13.phx.gbl...
> > Somwthing is wrong here? looks like your question itself:-
> >
> > what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8 pixels
high?
> >
> > Can you do something as simple as this and see your output.:-
> >
> > HDC memdc =CreateCompatibleDC(hdc);
> > HBITMAP hbm = CreateCompatibleBitmap(memdc,8,8);
> > SelectObject(memdc , hbm);
> >
> > StartDoc(...)
> > StartPage(...)
> > BitBlt(hdc,0,0,8,8,SRCCOPY);
> > EndPage(...)
> > EndDoc(...)
> >
> >
> > BTW "4" in the escape means 4 bytes of data follows.
> >
> > vipin(vprnt at lycos dot com)
> >
> > "Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
> > news:Oy9g338QEHA.2468@tk2msftngp13.phx.gbl...
> > > Hi, All,
> > >
> > > I create a 8*8 bytes, 256 RGB BMP file (use Paint of Windows), and
> use
> > > HP printer printed it to files (PCL 5e). I studied the PCL file and
find
> > the
> > > data field. I can not understand what dose it mean. Need someone's
help.
> > > Thanks!
> > >
> > > The BMP file I filled in red, and the BMP file in Hex code, Dard
red
> > is
> > > 2. I can read 32 bytes (22) in the BMP file.
> > >
> > > And the PCL 5e file in Hex, I don't understand the Hex indicated
red
> > > color.
> > >
> > > (Esc * b # W [raster data], referenced by PCL 5 Printer
> LanguageTechnical
> > > Reference Manual)
> > >
> > > 1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means Esc*b4W)
> > > 1B 2A 62 34 57 FA 7F 00 60
> > > 1B 2A 62 34 57 FA 3F 00 20
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > 1B 2A 62 34 57 FA F3 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA 7F 00 60
> > > 1B 2A 62 34 57 FA 3F 00 20
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > 1B 2A 62 34 57 FA F3 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA 7F 00 60
> > > 1B 2A 62 34 57 FA 3F 00 20
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > 1B 2A 62 34 57 FA F3 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA 7F 00 60
> > > 1B 2A 62 34 57 FA 3F 00 20
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > 1B 2A 62 34 57 FA F3 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA 7F 00 60
> > > 1B 2A 62 34 57 FA 3F 00 20
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > 1B 2A 62 34 57 FA F3 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA 7F 00 60
> > > 1B 2A 62 34 57 FA 3F 00 20
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > 1B 2A 62 34 57 FA F3 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA 7F 00 60
> > > 1B 2A 62 34 57 FA 3F 00 20
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > 1B 2A 62 34 57 FA F3 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA FF 00 E0
> > > 1B 2A 62 34 57 FA 7F 00 60
> > > 1B 2A 62 34 57 FA 3F 00 20
> > > 1B 2A 72 43 1B 26 61 30 50
> > >
> > > There is something in order in the above Hex, would you tell me
the
> > > detail?
> > >
> > > --
> > > Thanks & Regards
> > > Daniel
> > >
> > >
> > >
> >
> >
>
>



Re: BMP format & PCL format by Daniel

Daniel
Thu May 27 21:12:16 CDT 2004

No, I'm not going to use Windows, neither the driver of windows. that is why
I am looking for the document of convert graphics file format to PCL format.


"vipin" <vipin@nospam.com> дÈëÏûÏ¢ÐÂÎÅ
:#gwevU$QEHA.556@TK2MSFTNGP10.phx.gbl...
> Install a printer driver on windows system, write the applicaiton, print
on
> the driver and
> examine the output.
>
> thanks
> vipin
>
>
> "Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
> news:#SKzqw9QEHA.3744@TK2MSFTNGP10.phx.gbl...
> > Hi,vipin,
> >
> > > what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8 pixels
> high?
> > Yes, it is.
> >
> > > Can you do something as simple as this and see your output.:-
> > Okay, thinks very much. I'll try it. But I'm not sure I could use
> > windows API functions, maybe I have to write my own API function. This
is
> > very terrible. :(
> >
> > > vipin(vprnt at lycos dot com)
> > What is it?
> >
> > Best Regards
> > Daniel
> >
> >
> > "vipin" <vipin@nospam.com> дÈëÏûÏ¢ÐÂÎÅ
> > :#b1yZk9QEHA.3012@tk2msftngp13.phx.gbl...
> > > Somwthing is wrong here? looks like your question itself:-
> > >
> > > what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8 pixels
> high?
> > >
> > > Can you do something as simple as this and see your output.:-
> > >
> > > HDC memdc =CreateCompatibleDC(hdc);
> > > HBITMAP hbm = CreateCompatibleBitmap(memdc,8,8);
> > > SelectObject(memdc , hbm);
> > >
> > > StartDoc(...)
> > > StartPage(...)
> > > BitBlt(hdc,0,0,8,8,SRCCOPY);
> > > EndPage(...)
> > > EndDoc(...)
> > >
> > >
> > > BTW "4" in the escape means 4 bytes of data follows.
> > >
> > > vipin(vprnt at lycos dot com)
> > >
> > > "Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
> > > news:Oy9g338QEHA.2468@tk2msftngp13.phx.gbl...
> > > > Hi, All,
> > > >
> > > > I create a 8*8 bytes, 256 RGB BMP file (use Paint of Windows),
and
> > use
> > > > HP printer printed it to files (PCL 5e). I studied the PCL file and
> find
> > > the
> > > > data field. I can not understand what dose it mean. Need someone's
> help.
> > > > Thanks!
> > > >
> > > > The BMP file I filled in red, and the BMP file in Hex code, Dard
> red
> > > is
> > > > 2. I can read 32 bytes (22) in the BMP file.
> > > >
> > > > And the PCL 5e file in Hex, I don't understand the Hex indicated
> red
> > > > color.
> > > >
> > > > (Esc * b # W [raster data], referenced by PCL 5 Printer
> > LanguageTechnical
> > > > Reference Manual)
> > > >
> > > > 1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means Esc*b4W)
> > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > 1B 2A 72 43 1B 26 61 30 50
> > > >
> > > > There is something in order in the above Hex, would you tell me
> the
> > > > detail?
> > > >
> > > > --
> > > > Thanks & Regards
> > > > Daniel
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: BMP format & PCL format by vipin

vipin
Fri May 28 08:20:46 CDT 2004

This is a windows newsgroup managed by microsoft. You may want to try these
problems somewhere else.

thanks
vipin


"Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
news:u9oU#hFREHA.568@TK2MSFTNGP12.phx.gbl...
> No, I'm not going to use Windows, neither the driver of windows. that is
why
> I am looking for the document of convert graphics file format to PCL
format.
>
>
> "vipin" <vipin@nospam.com> дÈëÏûÏ¢ÐÂÎÅ
> :#gwevU$QEHA.556@TK2MSFTNGP10.phx.gbl...
> > Install a printer driver on windows system, write the applicaiton,
print
> on
> > the driver and
> > examine the output.
> >
> > thanks
> > vipin
> >
> >
> > "Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
> > news:#SKzqw9QEHA.3744@TK2MSFTNGP10.phx.gbl...
> > > Hi,vipin,
> > >
> > > > what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8 pixels
> > high?
> > > Yes, it is.
> > >
> > > > Can you do something as simple as this and see your output.:-
> > > Okay, thinks very much. I'll try it. But I'm not sure I could use
> > > windows API functions, maybe I have to write my own API function. This
> is
> > > very terrible. :(
> > >
> > > > vipin(vprnt at lycos dot com)
> > > What is it?
> > >
> > > Best Regards
> > > Daniel
> > >
> > >
> > > "vipin" <vipin@nospam.com> дÈëÏûÏ¢ÐÂÎÅ
> > > :#b1yZk9QEHA.3012@tk2msftngp13.phx.gbl...
> > > > Somwthing is wrong here? looks like your question itself:-
> > > >
> > > > what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8 pixels
> > high?
> > > >
> > > > Can you do something as simple as this and see your output.:-
> > > >
> > > > HDC memdc =CreateCompatibleDC(hdc);
> > > > HBITMAP hbm = CreateCompatibleBitmap(memdc,8,8);
> > > > SelectObject(memdc , hbm);
> > > >
> > > > StartDoc(...)
> > > > StartPage(...)
> > > > BitBlt(hdc,0,0,8,8,SRCCOPY);
> > > > EndPage(...)
> > > > EndDoc(...)
> > > >
> > > >
> > > > BTW "4" in the escape means 4 bytes of data follows.
> > > >
> > > > vipin(vprnt at lycos dot com)
> > > >
> > > > "Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
> > > > news:Oy9g338QEHA.2468@tk2msftngp13.phx.gbl...
> > > > > Hi, All,
> > > > >
> > > > > I create a 8*8 bytes, 256 RGB BMP file (use Paint of Windows),
> and
> > > use
> > > > > HP printer printed it to files (PCL 5e). I studied the PCL file
and
> > find
> > > > the
> > > > > data field. I can not understand what dose it mean. Need someone's
> > help.
> > > > > Thanks!
> > > > >
> > > > > The BMP file I filled in red, and the BMP file in Hex code,
Dard
> > red
> > > > is
> > > > > 2. I can read 32 bytes (22) in the BMP file.
> > > > >
> > > > > And the PCL 5e file in Hex, I don't understand the Hex
indicated
> > red
> > > > > color.
> > > > >
> > > > > (Esc * b # W [raster data], referenced by PCL 5 Printer
> > > LanguageTechnical
> > > > > Reference Manual)
> > > > >
> > > > > 1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means Esc*b4W)
> > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > 1B 2A 72 43 1B 26 61 30 50
> > > > >
> > > > > There is something in order in the above Hex, would you tell
me
> > the
> > > > > detail?
> > > > >
> > > > > --
> > > > > Thanks & Regards
> > > > > Daniel
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: BMP format & PCL format by Tim

Tim
Sat May 29 18:30:32 CDT 2004

"Daniel Xu" <danielxu22@cellink.com.cn> wrote:
>
> I create a 8*8 bytes, 256 RGB BMP file (use Paint of Windows), and use
>HP printer printed it to files (PCL 5e). I studied the PCL file and find the
>data field. I can not understand what dose it mean. Need someone's help.
>Thanks!
>
> The BMP file I filled in red, and the BMP file in Hex code, Dard red is
>2. I can read 32 bytes (22) in the BMP file.
>
> And the PCL 5e file in Hex, I don't understand the Hex indicated red
>color.
>
>(Esc * b # W [raster data], referenced by PCL 5 Printer LanguageTechnical
>Reference Manual)
>
>1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means Esc*b4W)
>1B 2A 62 34 57 FA 7F 00 60
>1B 2A 62 34 57 FA 3F 00 20
>1B 2A 62 34 57 FA FF 00 E0

PCL is context sensitive. The information before this could have changed
the interpretation of the *b#W data.

Remember that there is no "red" ink cartridge. The printer has cyan,
magenta, yellow, and black. It's likely that your pure red gets translated
into some combination of cyan and magenta.

Also remember that, in some printers, the data that gets sent across is
actually microdot spray patterns, not just simple pixel information.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc

Re: BMP format & PCL format by vipin

vipin
Sun May 30 05:14:28 CDT 2004

You can send the RGB data and it will print properly.You needn't convert to
cmyk before sending to the printer.
pcl5 supports it.





"Tim Roberts" <timr@probo.com> wrote in message
news:g47ib05hbjbnnella9l2accbta12b1cml9@4ax.com...
> "Daniel Xu" <danielxu22@cellink.com.cn> wrote:
> >
> > I create a 8*8 bytes, 256 RGB BMP file (use Paint of Windows), and
use
> >HP printer printed it to files (PCL 5e). I studied the PCL file and find
the
> >data field. I can not understand what dose it mean. Need someone's help.
> >Thanks!
> >
> > The BMP file I filled in red, and the BMP file in Hex code, Dard red
is
> >2. I can read 32 bytes (22) in the BMP file.
> >
> > And the PCL 5e file in Hex, I don't understand the Hex indicated red
> >color.
> >
> >(Esc * b # W [raster data], referenced by PCL 5 Printer LanguageTechnical
> >Reference Manual)
> >
> >1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means Esc*b4W)
> >1B 2A 62 34 57 FA 7F 00 60
> >1B 2A 62 34 57 FA 3F 00 20
> >1B 2A 62 34 57 FA FF 00 E0
>
> PCL is context sensitive. The information before this could have changed
> the interpretation of the *b#W data.
>
> Remember that there is no "red" ink cartridge. The printer has cyan,
> magenta, yellow, and black. It's likely that your pure red gets
translated
> into some combination of cyan and magenta.
>
> Also remember that, in some printers, the data that gets sent across is
> actually microdot spray patterns, not just simple pixel information.
> --
> - Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc



Re: BMP format & PCL format by Daniel

Daniel
Mon May 31 00:45:37 CDT 2004

Where can I find the answer£¿

"vipin" <vipin@nospam.com> дÈëÏûÏ¢ÐÂÎÅ
:O9HwpULREHA.252@TK2MSFTNGP10.phx.gbl...
> This is a windows newsgroup managed by microsoft. You may want to try
these
> problems somewhere else.
>
> thanks
> vipin
>
>
> "Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
> news:u9oU#hFREHA.568@TK2MSFTNGP12.phx.gbl...
> > No, I'm not going to use Windows, neither the driver of windows. that is
> why
> > I am looking for the document of convert graphics file format to PCL
> format.
> >
> >
> > "vipin" <vipin@nospam.com> дÈëÏûÏ¢ÐÂÎÅ
> > :#gwevU$QEHA.556@TK2MSFTNGP10.phx.gbl...
> > > Install a printer driver on windows system, write the applicaiton,
> print
> > on
> > > the driver and
> > > examine the output.
> > >
> > > thanks
> > > vipin
> > >
> > >
> > > "Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
> > > news:#SKzqw9QEHA.3744@TK2MSFTNGP10.phx.gbl...
> > > > Hi,vipin,
> > > >
> > > > > what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8
pixels
> > > high?
> > > > Yes, it is.
> > > >
> > > > > Can you do something as simple as this and see your output.:-
> > > > Okay, thinks very much. I'll try it. But I'm not sure I could
use
> > > > windows API functions, maybe I have to write my own API function.
This
> > is
> > > > very terrible. :(
> > > >
> > > > > vipin(vprnt at lycos dot com)
> > > > What is it?
> > > >
> > > > Best Regards
> > > > Daniel
> > > >
> > > >
> > > > "vipin" <vipin@nospam.com> дÈëÏûÏ¢ÐÂÎÅ
> > > > :#b1yZk9QEHA.3012@tk2msftngp13.phx.gbl...
> > > > > Somwthing is wrong here? looks like your question itself:-
> > > > >
> > > > > what do you mean by 8*8 bytes.Do you mean 8 pixels wide and 8
pixels
> > > high?
> > > > >
> > > > > Can you do something as simple as this and see your output.:-
> > > > >
> > > > > HDC memdc =CreateCompatibleDC(hdc);
> > > > > HBITMAP hbm = CreateCompatibleBitmap(memdc,8,8);
> > > > > SelectObject(memdc , hbm);
> > > > >
> > > > > StartDoc(...)
> > > > > StartPage(...)
> > > > > BitBlt(hdc,0,0,8,8,SRCCOPY);
> > > > > EndPage(...)
> > > > > EndDoc(...)
> > > > >
> > > > >
> > > > > BTW "4" in the escape means 4 bytes of data follows.
> > > > >
> > > > > vipin(vprnt at lycos dot com)
> > > > >
> > > > > "Daniel Xu" <danielxu22@cellink.com.cn> wrote in message
> > > > > news:Oy9g338QEHA.2468@tk2msftngp13.phx.gbl...
> > > > > > Hi, All,
> > > > > >
> > > > > > I create a 8*8 bytes, 256 RGB BMP file (use Paint of
Windows),
> > and
> > > > use
> > > > > > HP printer printed it to files (PCL 5e). I studied the PCL file
> and
> > > find
> > > > > the
> > > > > > data field. I can not understand what dose it mean. Need
someone's
> > > help.
> > > > > > Thanks!
> > > > > >
> > > > > > The BMP file I filled in red, and the BMP file in Hex code,
> Dard
> > > red
> > > > > is
> > > > > > 2. I can read 32 bytes (22) in the BMP file.
> > > > > >
> > > > > > And the PCL 5e file in Hex, I don't understand the Hex
> indicated
> > > red
> > > > > > color.
> > > > > >
> > > > > > (Esc * b # W [raster data], referenced by PCL 5 Printer
> > > > LanguageTechnical
> > > > > > Reference Manual)
> > > > > >
> > > > > > 1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means
Esc*b4W)
> > > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 39 57 07 F7 F3 F7 F3 F7 F3 F7 E0
> > > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 39 57 07 F3 F7 F3 F7 F3 F7 F3 E0
> > > > > > 1B 2A 62 34 57 FA F3 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA FF 00 E0
> > > > > > 1B 2A 62 34 57 FA 7F 00 60
> > > > > > 1B 2A 62 34 57 FA 3F 00 20
> > > > > > 1B 2A 72 43 1B 26 61 30 50
> > > > > >
> > > > > > There is something in order in the above Hex, would you tell
> me
> > > the
> > > > > > detail?
> > > > > >
> > > > > > --
> > > > > > Thanks & Regards
> > > > > > Daniel
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: BMP format & PCL format by Daniel

Daniel
Mon May 31 00:53:01 CDT 2004

Hi, Tim,

I can't grasp your main idea. My purpose is convert some graphic format
files, such as BMP, JPEG, GIF, to PCL format, which could be identified HP
LaserJet Printer (PCL 5, or PCL 6 maybe, I'm not sure, I can not find any
resources on the two formats translation).

I tried to research some difference between the BMP file format (cause
it is very simple then others) and PCL format.

Esc * b # W [raster data] mean that transfers a row of raster graphics
to the printer. I think there is something in order in the convertion. Maybe
I am wrong.

Could you tell me the details? It is a secret, Right?

Thanks & Regards
Daniel



"Tim Roberts" <timr@probo.com>
??????:g47ib05hbjbnnella9l2accbta12b1cml9@4ax.com...
> "Daniel Xu" <danielxu22@cellink.com.cn> wrote:
> >
> > I create a 8*8 bytes, 256 RGB BMP file (use Paint of Windows), and
use
> >HP printer printed it to files (PCL 5e). I studied the PCL file and find
the
> >data field. I can not understand what dose it mean. Need someone's help.
> >Thanks!
> >
> > The BMP file I filled in red, and the BMP file in Hex code, Dard red
is
> >2. I can read 32 bytes (22) in the BMP file.
> >
> > And the PCL 5e file in Hex, I don't understand the Hex indicated red
> >color.
> >
> >(Esc * b # W [raster data], referenced by PCL 5 Printer LanguageTechnical
> >Reference Manual)
> >
> >1B 2A 62 34 57 FA FF 00 E0 (1B 2A 62 34 57 means Esc*b4W)
> >1B 2A 62 34 57 FA 7F 00 60
> >1B 2A 62 34 57 FA 3F 00 20
> >1B 2A 62 34 57 FA FF 00 E0
>
> PCL is context sensitive. The information before this could have changed
> the interpretation of the *b#W data.
>
> Remember that there is no "red" ink cartridge. The printer has cyan,
> magenta, yellow, and black. It's likely that your pure red gets
translated
> into some combination of cyan and magenta.
>
> Also remember that, in some printers, the data that gets sent across is
> actually microdot spray patterns, not just simple pixel information.
> --
> - Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc



Re: BMP format & PCL format by Judy

Judy
Mon May 31 05:14:57 CDT 2004

I agree with the earlier poster that this really isn't the right place to
be asking your questions, but since I'm not sure where the right place
is, here are some suggestions as to what you need to look for.

I think that you actually have two separate problems here:
1) You need a parser to process the BMP, JPEG etc into an internal raster
data format - each of these formats will require different code.
2) You need something to convert your parsed raster data into PCL

For Windows DIBs (BMP formats) you can find information about the formats
used if you look for BITMAPINFO and related structures in the Microsoft
SDK documentation. Look on www.microsoft.com for this. There is a
variation of the BITMAPINFO header that specifies that a DIB contains
JPEG compressed data, but once you have got that you need code that will
handle JPEG decompression for you. There are open-source libaries
available to handle the JPEG and you can probably also find a variety of
sources that will read (and write) DIBs too. Sorry, I don't know anything
much about GIF formats, but Google etc should find you some links for
that and for the JPEG side of things.

The PCL side of things is probably harder if you're not working with a
Windows program. You specify PCL-5e so your only output raster format is
1-bpp and you will need to find some way of halftoning the data from 256
colour etc to 1-bpp. (I think that Tim thought you were dealing with a
four colour printer such as a DeskJet - which would still need halftoning
to get to planar output). If you go to www.hp.com you will find some
information about PCL-5e, but you need to sign up to their solution
providers program to get the complete documentation (or pay for printed
docs). I think that the solution provider program may be free, but I'm
not certain about that.


Judy

"Daniel Xu" <danielxu22@cellink.com.cn> wrote in
news:usqbXLtREHA.3616@TK2MSFTNGP11.phx.gbl:

> Hi, Tim,
>
> I can't grasp your main idea. My purpose is convert some graphic
> format
> files, such as BMP, JPEG, GIF, to PCL format, which could be
> identified HP LaserJet Printer (PCL 5, or PCL 6 maybe, I'm not sure, I
> can not find any resources on the two formats translation).
>
> I tried to research some difference between the BMP file format
> (cause
> it is very simple then others) and PCL format.
>
> Esc * b # W [raster data] mean that transfers a row of raster
> graphics
> to the printer. I think there is something in order in the convertion.
> Maybe I am wrong.
>
> Could you tell me the details? It is a secret, Right?
>
> Thanks & Regards
> Daniel
>
>
>

Re: BMP format & PCL format by Daniel

Daniel
Thu Jun 03 20:32:15 CDT 2004

Hi,

I'm sorry to trouble you. Cause I know save the graphic file to PCL
format is a commercial product. I have no choice, My product could use this
technology, I will pay the money if HP support this. Do you have any idea
about this? Which one shall I touch?

Thanks & Regards
Daniel

"Judy" <me@privacy.net> дÈëÏûÏ¢ÐÂÎÅ
:Xns94FA72722C7C1judyboothbcsorguk@130.133.1.4...
> I agree with the earlier poster that this really isn't the right place to
> be asking your questions, but since I'm not sure where the right place
> is, here are some suggestions as to what you need to look for.
>
> I think that you actually have two separate problems here:
> 1) You need a parser to process the BMP, JPEG etc into an internal raster
> data format - each of these formats will require different code.
> 2) You need something to convert your parsed raster data into PCL
>
> For Windows DIBs (BMP formats) you can find information about the formats
> used if you look for BITMAPINFO and related structures in the Microsoft
> SDK documentation. Look on www.microsoft.com for this. There is a
> variation of the BITMAPINFO header that specifies that a DIB contains
> JPEG compressed data, but once you have got that you need code that will
> handle JPEG decompression for you. There are open-source libaries
> available to handle the JPEG and you can probably also find a variety of
> sources that will read (and write) DIBs too. Sorry, I don't know anything
> much about GIF formats, but Google etc should find you some links for
> that and for the JPEG side of things.
>
> The PCL side of things is probably harder if you're not working with a
> Windows program. You specify PCL-5e so your only output raster format is
> 1-bpp and you will need to find some way of halftoning the data from 256
> colour etc to 1-bpp. (I think that Tim thought you were dealing with a
> four colour printer such as a DeskJet - which would still need halftoning
> to get to planar output). If you go to www.hp.com you will find some
> information about PCL-5e, but you need to sign up to their solution
> providers program to get the complete documentation (or pay for printed
> docs). I think that the solution provider program may be free, but I'm
> not certain about that.
>
>
> Judy
>
> "Daniel Xu" <danielxu22@cellink.com.cn> wrote in
> news:usqbXLtREHA.3616@TK2MSFTNGP11.phx.gbl:
>
> > Hi, Tim,
> >
> > I can't grasp your main idea. My purpose is convert some graphic
> > format
> > files, such as BMP, JPEG, GIF, to PCL format, which could be
> > identified HP LaserJet Printer (PCL 5, or PCL 6 maybe, I'm not sure, I
> > can not find any resources on the two formats translation).
> >
> > I tried to research some difference between the BMP file format
> > (cause
> > it is very simple then others) and PCL format.
> >
> > Esc * b # W [raster data] mean that transfers a row of raster
> > graphics
> > to the printer. I think there is something in order in the convertion.
> > Maybe I am wrong.
> >
> > Could you tell me the details? It is a secret, Right?
> >
> > Thanks & Regards
> > Daniel
> >
> >
> >



Re: BMP format & PCL format by edwardho

edwardho
Fri Jun 04 05:31:51 CDT 2004

Hi Daniel,

To get PCL5e white papers,

http://www.hpdevelopersolutions.com/index.cfm

click "Join SPP" at the lower right corner.

Then you can download white papers for free.

For your topic, they use only portion of PCL commands, especially
raster ones. Read the compress format carefully than you'll do it.

Good luck,
Edward