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

PaintShading() public method

public PaintShading ( PdfShading shading ) : void
shading PdfShading
return void
        public virtual void PaintShading(PdfShading shading)
        {
            writer.AddSimpleShading(shading);
            PageResources prs = PageResources;
            PdfName name = prs.AddShading(shading.ShadingName, shading.ShadingReference);
            content.Append(name.GetBytes()).Append(" sh").Append_i(separator);
            ColorDetails details = shading.ColorDetails;
            if (details != null)
                prs.AddColor(details.ColorName, details.IndirectReference);
        }

Same methods

PdfContentByte::PaintShading ( PdfShadingPattern shading ) : void
PdfContentByte