Package it.stefanobertini.zebra.cpcl.labelmode

Examples of it.stefanobertini.zebra.cpcl.labelmode.CompressedGraphics


public class CompressedGraphicsTest {

    @Test
    public void test1() {
  CompressedGraphics command = new CompressedGraphics(Orientation.horizontal, new Size(2, 16), new Position(90, 45),
          "F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0FF0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("COMPRESSED-GRAPHICS 2 16 90 45 F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0FF0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F");
View Full Code Here


    @Test
    public void test2() {
  int[] data = { 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0,
          0xF0, 0xF0, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F };

  CompressedGraphics command = new CompressedGraphics(Orientation.vertical, new Size(2, 16), new Position(90, 45), data);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("VCOMPRESSED-GRAPHICS 2 16 90 45 F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0FF0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F");

  assertCommand(output, command);
View Full Code Here

TOP

Related Classes of it.stefanobertini.zebra.cpcl.labelmode.CompressedGraphics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.