iTextSharp.text.pdf.PdfContentByte.CreatePattern C# (CSharp) Method

CreatePattern() public method

public CreatePattern ( float width, float height, float xstep, float ystep, BaseColor color ) : PdfPatternPainter
width float
height float
xstep float
ystep float
color iTextSharp.text.BaseColor
return PdfPatternPainter
        public PdfPatternPainter CreatePattern(float width, float height, float xstep, float ystep, BaseColor color)
        {
            CheckWriter();
            if ( xstep == 0.0f || ystep == 0.0f )
                throw new Exception(MessageLocalization.GetComposedMessage("xstep.or.ystep.can.not.be.zero"));
            PdfPatternPainter painter = new PdfPatternPainter(writer, color);
            painter.Width = width;
            painter.Height = height;
            painter.XStep = xstep;
            painter.YStep = ystep;
            writer.AddSimplePattern(painter);
            return painter;
        }

Same methods

PdfContentByte::CreatePattern ( float width, float height ) : PdfPatternPainter
PdfContentByte::CreatePattern ( float width, float height, BaseColor color ) : PdfPatternPainter
PdfContentByte::CreatePattern ( float width, float height, float xstep, float ystep ) : PdfPatternPainter
PdfContentByte