Frage

I have an issue while printing the image in Zebra printer along with some text. Sources said that for printing the image we have to convert the image to .pcx format. I could not find the way, how to convert the image to .pcx in android.

Can any one know please post the solution here on how to print the image along with some text from Zebra Printer.

War es hilfreich?

Lösung 2

I use GIMP and ImageMagick for static images, if you want dynamic images I suggest you try another method to send image data.

GIMP: Convert the image to "Indexed mode" Image->Mode->Indexed->Use black and white (1-bit) palette. Save as .bmp

ImageMagick: Then use imagemagick's 'convert' program to convert from .bmp to .pcx i.e. convert source.bmp target.pcx

Then you have 1-bit pcx-file you can include in your android app.

Andere Tipps

Zebra provides an Android SDK that will convert graphics to PCX for you

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top