ApiExamples.ExPdfSaveOptions.ColorRendering C# (CSharp) Метод

ColorRendering() приватный Метод

private ColorRendering ( ) : void
Результат void
        public void ColorRendering()
        {
            //ExStart
            //ExFor:PdfSaveOptions.ColorMode
            //ExSummary:Shows how change image color with save options property
            
            //Open document with color image
            Document doc = new Document(MyDir + "Rendering.doc");

            //Set grayscale mode for document
            PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
            pdfSaveOptions.ColorMode = ColorMode.Grayscale;

            //Assert that color image in document was grey
            doc.Save(MyDir + @"\Artifacts\ColorMode.PdfGrayscaleMode.pdf", pdfSaveOptions);
            //ExEnd
        }
    }