Re: FS q command



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.
>

.



Relevant Pages

  • Re: ? O-ishT: Designing an About Box
    ... I also put the logo for Flash and things like that. ... I have a button that pops up a dialog with all the DLLs my program loads and finds and the version and location on disk of the DLL. ... Text is drawn onto the top of the bitmap including copyright and version information from the VERSIONINFO. ... I thoroughly expect to sell millions of copies to people who will be able to amuse themselves for hours on end without ever opening a document window! ...
    (microsoft.public.vc.mfc)
  • Exceptions occuring related to Graphics
    ... update a bitmap that is getting displayed on the Client. ... commands might involve the GDI graphics class. ... include drawing a line, drawing a circle, and drawing text. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Exceptions occuring related to Graphics
    ... That sub does not use the bitmap or graphics class. ... Graphics class to draw the line, as one of the possible commands from the ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: DirectDraw overlays and color key range?
    ... This also brought on the challenge of converting the DX logo ... > bitmap from RGB to YUV, but it's not a big deal. ... but, at least, where you convert the bitmap and create the overlay. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Add a logo to hard copy
    ... > I have been asked to add a logo to a paper form. ... As you will see from the above code, the original size of your picture ... if you do stick to using a bitmap then ... but this time at a larger size (98 x 168 pixels for example). ...
    (comp.lang.basic.visual.misc)