Beispiel #1
0
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            //^ GE300,100,10,B ^ FS
            var result = new List <string>();

            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^GE{context.Scale(Width)},{context.Scale(Height)},{context.Scale(BorderThickness)},{RenderLineColor(LineColor)}^FS");

            return(result);
        }
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            //^GCd,t,c
            var result = new List <string>();

            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^GC{context.Scale(Diameter)},{context.Scale(BorderThickness)},{RenderLineColor(LineColor)}^FS");

            return(result);
        }
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            //^GDw,h,t,c,o
            var result = new List <string>();

            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^GD{context.Scale(Width)},{context.Scale(Height)},{context.Scale(BorderThickness)},{RenderLineColor(LineColor)},{(RightLeaningDiagonal ? "R" : "L")}^FS");

            return(result);
        }
Beispiel #4
0
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            //^ XA
            //^ CF0,30,30 ^ FO25,50
            //   ^ FB250,4,,
            //^ FDFD command that IS\&
            // preceded by an FB \&command.
            // ^ FS
            // ^ XZ
            var result = new List <string>();

            result.AddRange(Font.Render(context));
            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^FB{context.Scale(Width)},{MaxLineCount},{context.Scale(LineSpace)},{RenderTextJustification()},{context.Scale(HangingIndent)}");
            result.Add(RenderFieldDataSection());

            return(result);
        }
Beispiel #5
0
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            //^GSo,h,w
            var result = new List <string>();

            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^GS{RenderFieldOrientation(FieldOrientation)},{context.Scale(Height)},{context.Scale(Width)}^FD{CharacterLetter}^FS");

            return(result);
        }
Beispiel #6
0
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            var result = new List <string>();

            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^BE{RenderFieldOrientation()},{context.Scale(Height)},{RenderPrintInterpretationLine()},{RenderPrintInterpretationLineAboveCode()}");
            result.Add($"^FD{Content}^FS");

            return(result);
        }
Beispiel #7
0
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            var result = new List <string>();

            result.AddRange(Font.Render(context));
            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^TB{RenderFieldOrientation(Font.FieldOrientation)},{context.Scale(Width)},{context.Scale(Height)}");
            result.Add(RenderFieldDataSection());

            return(result);
        }
Beispiel #8
0
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            //^ FO100,100 ^ BY3
            // ^ BKN,N,150,Y,N,A,A
            //  ^ FD123456 ^ FS
            var result = new List <string>();

            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^BK{RenderFieldOrientation()},{(CheckDigit ? "Y" : "N")},{context.Scale(Height)},{RenderPrintInterpretationLine()},{RenderPrintInterpretationLineAboveCode()},{StartCharacter},{StopCharacter}");
            result.Add($"^FD{Content}^FS");

            return(result);
        }
Beispiel #9
0
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            //^ FO100,100
            //^ BQN,2,10
            //^ FDMM,AAC - 42 ^ FS
            var result = new List <string>();

            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^BQN,{Model},{context.Scale(MagnificationFactor)},{RenderErrorCorrectionLevel(ErrorCorrectionLevel)},{MaskValue}");
            result.Add($"^FD{RenderErrorCorrectionLevel(ErrorCorrectionLevel)}A,{Content}^FS");

            return(result);
        }
Beispiel #10
0
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            //^FO100,100
            //^BXN,10,200
            //^FDZEBRA TECHNOLOGIES CORPORATION ^ FS
            var result = new List <string>();

            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^BX{RenderFieldOrientation()},{context.Scale(Height)}");
            result.Add($"^FD{Content}^FS");

            return(result);
        }
Beispiel #11
0
        ///<inheritdoc/>
        public override IEnumerable <string> Render(ZplRenderOptions context)
        {
            //TODO:Add 'UCC check digit' and 'mode'

            //^FO100,100 ^ BY3
            //^BCN,100,Y,N,N
            //^FD123456 ^ FS
            var result = new List <string>();

            result.AddRange(FieldOrigin.Render(context));
            result.Add($"^BC{RenderFieldOrientation()},{context.Scale(Height)},{RenderPrintInterpretationLine()},{RenderPrintInterpretationLineAboveCode()}");
            result.Add($"^FD{Content}^FS");

            return(result);
        }
Beispiel #12
0
 ///<inheritdoc/>
 public override IEnumerable <string> Render(ZplRenderOptions context)
 {
     //^FO50,50
     return(new string[] { $"^FT{context.Scale(PositionX)},{context.Scale(PositionY)}" });
 }
Beispiel #13
0
 ///<inheritdoc/>
 public override IEnumerable <string> Render(ZplRenderOptions context)
 {
     return(new[] { $"^A{FontName}{RenderFieldOrientation(FieldOrientation)},{context.Scale(FontHeight)},{context.Scale(FontWidth)}" });
 }