Вопрос

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.

Это было полезно?

Решение 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.

Другие советы

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top