iTextSharp.text.pdf.PdfShading.Type1 C# (CSharp) Метод

Type1() публичный статический Метод

public static Type1 ( PdfWriter writer, BaseColor colorSpace, float domain, float tMatrix, PdfFunction function ) : PdfShading
writer PdfWriter
colorSpace iTextSharp.text.BaseColor
domain float
tMatrix float
function PdfFunction
Результат PdfShading
        public static PdfShading Type1(PdfWriter writer, BaseColor colorSpace, float[] domain, float[] tMatrix, PdfFunction function)
        {
            PdfShading sp = new PdfShading(writer);
            sp.shading = new PdfDictionary();
            sp.shadingType = 1;
            sp.shading.Put(PdfName.SHADINGTYPE, new PdfNumber(sp.shadingType));
            sp.SetColorSpace(colorSpace);
            if (domain != null)
                sp.shading.Put(PdfName.DOMAIN, new PdfArray(domain));
            if (tMatrix != null)
                sp.shading.Put(PdfName.MATRIX, new PdfArray(tMatrix));
            sp.shading.Put(PdfName.FUNCTION, function.Reference);
            return sp;
        }