iTextSharp.text.pdf.PdfContentByte.SetCMYKColorFillF C# (CSharp) Метод

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

public SetCMYKColorFillF ( float cyan, float magenta, float yellow, float black ) : void
cyan float
magenta float
yellow float
black float
Результат void
        public virtual void SetCMYKColorFillF(float cyan, float magenta, float yellow, float black)
        {
            HelperCMYK(cyan, magenta, yellow, black);
            content.Append(" k").Append_i(separator);
        }

Usage Example

Пример #1
0
        private void SetStrokeColor(PdfContentByte canvas, IList<object> strokeColorArgs) {
            switch (strokeColorArgs.Count) {
                case 1:
                    canvas.SetGrayStroke(((PdfNumber) strokeColorArgs[0]).FloatValue);
                    break;

                case 3:
                    canvas.SetRGBColorStrokeF(((PdfNumber) strokeColorArgs[0]).FloatValue,
                                              ((PdfNumber) strokeColorArgs[1]).FloatValue,
                                              ((PdfNumber) strokeColorArgs[2]).FloatValue);
                    break;

                case 4:
                    canvas.SetCMYKColorFillF(((PdfNumber) strokeColorArgs[0]).FloatValue,
                                             ((PdfNumber) strokeColorArgs[1]).FloatValue,
                                             ((PdfNumber) strokeColorArgs[2]).FloatValue,
                                             ((PdfNumber) strokeColorArgs[3]).FloatValue);
                    break;

            }
        }
PdfContentByte