public static byte[] CreateSetAlignmentCommand(PrintAlignment printAlignment) { var bytes = new List <Byte>(); bytes.AddRange(new byte[] { Commands.Esc, Commands.PrintAlignment, (byte)printAlignment }); return(bytes.ToArray()); }
public void SetAlignment(PrintAlignment printAlignment) { printerSocket.Send(CommandFactory.CreateSetAlignmentCommand(printAlignment)); }