Re: FS q command
- From: erewhon@xxxxxxxxxx (J French)
- Date: Tue, 31 Jan 2006 16:32:23 +0000 (UTC)
On 31 Jan 2006 04:23:17 -0800, "DelphiNew" <jcalata@xxxxxxxxxxx>
wrote:
<snip>
>I'm developing a Delphi application where I have to print
>tickets with a logo (bitmap), but I have to print it using ESC/p
>commands (I can't use StretchDIBits, StretchDraw...).
So you are bypassing the print driver or printing directly to (say)
COM1 ?
>I found the commands "FS q" y "FS p" to define and print bit images,
>but I'm unable to use them in Delphi.
I've not heard of those before, and cannot find anything about them
This page looks helpful
http://support2.epson.net/manuals/english/page/epl_5800/REF_G/APCOM_3.HTM
And this is better as it is definitely ESC/P and goes on to ESC/P2
http://www.nefec.org/UPM/epsfrm.htm
>Anyone know how could I use this commands?.
My understanding is that ESC/P prints graphics as a stream of bytes
Esc * mode n1 n2 Data
The mode is documented in the second link above, n1 and n2 are I
believe a WORD containing the number of columns
eg: typically bytes * 8
Your Logo is probably not a 2 colour bitmap, but you can convert it
into one by using the method: BitMap.Mask( Colour )
The background/transpararent colour is probably
BitMap.Canvas.Pixels[ 0, 0 ]
You can get at the underlying pixels using the Bitmap.Scanline[ 0 ]
property, I would copy those into a String
>Exists any easier way to print bitmaps directly without using the
>printer drivers?
It is over 20 years since I last used Epson graphics, but from memory
it was not particularly difficult
> Any example will be appreciate.
>
>
>Thanks in advance.
>
.
- Follow-Ups:
- Re: FS q command
- From: DelphiNew
- Re: FS q command
- References:
- FS q command
- From: DelphiNew
- FS q command
- Prev by Date: Re: Folding Editor
- Next by Date: Re: FS q command
- Previous by thread: Re: FS q command
- Next by thread: Re: FS q command
- Index(es):
Relevant Pages
|