如何将位图图像转换为.pcx格式以在Zebra打印机中打印图像 [英] How to convert the Bitmap image to .pcx format for printing image in Zebra Printer

查看:70
本文介绍了如何将位图图像转换为.pcx格式以在Zebra打印机中打印图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Zebra打印机中打印图像以及一些文本时出现问题.消息人士称,要打印图像,我们必须将图像转换为.pcx格式.我找不到方法,如何在android中将图像转换为.pcx.

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.

任何人都知道吗,请在此处发布有关如何打印图像以及Zebra打印机中的一些文本的解决方案.

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

推荐答案

我将GIMP和ImageMagick用于静态图像,如果要动态图像,建议您尝试另一种发送图像数据的方法.

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

GIMP :将图像转换为索引模式"图像->模式->索引->使用黑白(1位)调色板.另存为.bmp

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

ImageMagick :然后使用imagemagick的转换"程序将.bmp转换为.pcx即转换source.bmp target.pcx

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

然后您可以将1位pcx文件包含在android应用中.

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

这篇关于如何将位图图像转换为.pcx格式以在Zebra打印机中打印图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆