iTextSharp.text.pdf.BarcodeEANSUPP.PlaceBarcode C# (CSharp) Метод

PlaceBarcode() публичный Метод

public PlaceBarcode ( PdfContentByte cb, Color barColor, Color textColor ) : Rectangle
cb PdfContentByte
barColor Color
textColor Color
Результат iTextSharp.text.Rectangle
        public override Rectangle PlaceBarcode(PdfContentByte cb, Color barColor, Color textColor) {
            if (supp.Font != null)
                supp.BarHeight = ean.BarHeight + supp.Baseline - supp.Font.GetFontDescriptor(BaseFont.CAPHEIGHT, supp.Size);
            else
                supp.BarHeight = ean.BarHeight;
            Rectangle eanR = ean.BarcodeSize;
            cb.SaveState();
            ean.PlaceBarcode(cb, barColor, textColor);
            cb.RestoreState();
            cb.SaveState();
            cb.ConcatCTM(1, 0, 0, 1, eanR.Width + n, eanR.Height - ean.BarHeight);
            supp.PlaceBarcode(cb, barColor, textColor);
            cb.RestoreState();
            return this.BarcodeSize;
        }