iTextSharp.text.pdf.PdfShading.SimpleAxial C# (CSharp) Method

SimpleAxial() public static method

public static SimpleAxial ( PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor, bool extendStart, bool extendEnd ) : PdfShading
writer PdfWriter
x0 float
y0 float
x1 float
y1 float
startColor iTextSharp.text.BaseColor
endColor iTextSharp.text.BaseColor
extendStart bool
extendEnd bool
return PdfShading
        public static PdfShading SimpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor, bool extendStart, bool extendEnd)
        {
            CheckCompatibleColors(startColor, endColor);
            PdfFunction function = PdfFunction.Type2(writer, new float[]{0, 1}, null, GetColorArray(startColor),
                GetColorArray(endColor), 1);
            return Type2(writer, startColor, new float[]{x0, y0, x1, y1}, null, function, new bool[]{extendStart, extendEnd});
        }

Same methods

PdfShading::SimpleAxial ( PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor ) : PdfShading