Einzelnen Beitrag anzeigen

bergamo34

Registriert seit: 23. Jan 2004
19 Beiträge
 
#6

Re: wie kann man binär daten an drucker schicken!

  Alt 24. Feb 2004, 14:25
an LPT1,

aber mein Problem ist nicht wie ich den Drucker ansteuere, sondern ich weiss nicht wie man von z.b. *.pcx format an reine Binärformat ohne die Grafikformatierungen konvertiert.

Nach den Drucker Unterlagen gibt es eine Anweisung zum Drucken von Grafiken:

GW p1,p2,p3,p4 DATA

p1 = Horizontal start position (X) in dots.
p2 = Ver ti cal start po si tion (Y) in dots.
p3 = Width of graphic in bytes.
Eight (8) dots = One (1) byte of data
p4 = Length of graphic in dots (or print lines).

DATA = Raw binary data with out graphic file formatting. Data must be in bytes. Multiply the width in bytes (p3) by the number of print lines (p4) for the total amount of graphic data. The printer automatically calculates the exact size of the data block based upon this for mula.

Mein Problem ist der Parameter DATA, weiss nicht wie ich das machen kann.
Wie bekomme ich die reinen Binärdaten?

Mfg
ali
  Mit Zitat antworten Zitat