// Zebra (EPL):
document.jzebra.appendImage("image.png", "EPL");
while (!document.jzebra.isDoneAppending()) {} // wait
document.jzebra.append("\r\n");
// Zebra (ZPLII):
document.jzebra.appendImage("image.png", "ZPLII");
while (!document.jzebra.isDoneAppending()) {} // wait
document.jzebra.append("\r\n");
--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
http://code.google.com/p/jzebra
---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
import java.awt.image.BufferedImage;
import qz.ImageWrapper;
...
...
BufferedImage img = ImageIO.read(new File("image.png"));
ImageWrapper iw = new ImageWrapper(img, "ZPLII");
byte[] data = iw.getImageCommand();
...
String cmds = new String(data);
...
ImageWrapper iw = new ImageWrapper(img, "EPL");
I don't have much experience with ZPL and don't have a device to test on.
Does anyone on the list have luck printing images using ZPL?
I don't see anything alarming with your code but I've never attempted templates before, and the ZPL image code is not something I've actually seen work, so perhaps someone else can vouch for it.
-Tres
--