예제 #1
0
 public static IZebraCommand TextCommand(int horizontalStartPositionInDots, int verticalStartPositionInDots,
                                         ElementRotation rotation, StandardZebraFont zebraTextFont,
                                         int horizontalMultiplier,
                                         int verticalMultiplier, bool isReverse, string text)
 {
     string normalOrReverseString = isReverse ? "R" : "N";
     string command = string.Format("A{0},{1},{2},{3},{4},{5},{6},\"{7}\"", horizontalStartPositionInDots,
                                    verticalStartPositionInDots, rotation, zebraTextFont, horizontalMultiplier,
                                    verticalMultiplier, normalOrReverseString, text);
     return new ConstantCommands(command);
 }
예제 #2
0
 public static IZebraCommand BarCodeCommand(int horizontalStartPositionInDots, int verticalStartPositionInDots,
                                            ElementRotation rotation, int barcodeSelection,
                                            int narrowBarWidthInDots, int wideBarWidthInDots,
                                            int barcodeHeightInDots, bool printHumanReadableCode,
                                            string barcodeData)
 {
     string encodedPrintHumanReadableCode = printHumanReadableCode ? "B" : "N";
     return new ConstantCommands(
         string.Format("B{0},{1},{2},{3},{4},{5},{6},{7},\"{8}\"", horizontalStartPositionInDots,
                       verticalStartPositionInDots, rotation, barcodeSelection, narrowBarWidthInDots,
                       wideBarWidthInDots, barcodeHeightInDots, encodedPrintHumanReadableCode,
                       barcodeData));
 }
예제 #3
0
 public LabelBuilder TextRotated(string text, StandardZebraFont fontsize, int x, int y, ElementRotation rotation)
 {
     commands.Add(ZebraCommands.TextCommand(x, y, rotation, fontsize, 1, 1, false, text));
     //commands.Add(ZebraCommands.BarCodeCommand(x, y, ElementRotation.NO_ROTATION, 1,  .DrawBox(startX, startY, 2, endX, endY));
     return this;
 }