Back to Devexpress

PdfImageCompressionOptions.ConvertGrayscale Property

officefileapi-devexpress-dot-pdf-dot-pdfimagecompressionoptions-3d1d9ea3.md

latest1.6 KB
Original Source

PdfImageCompressionOptions.ConvertGrayscale Property

Gets or sets whether to convert color images to grayscale.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public bool ConvertGrayscale { get; set; }
vb
Public Property ConvertGrayscale As Boolean

Property Value

TypeDescription
Boolean

true to convert color images to grayscale; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ConvertGrayscale
PdfOptimizationOptions

.ImageCompressionOptions .ConvertGrayscale

|

Remarks

Set this property to true to convert all color images in the PDF document to grayscale during optimization. This reduces file size because grayscale images require less color information than RGB images.

See Also

PdfImageCompressionOptions Class

PdfImageCompressionOptions Members

DevExpress.Pdf Namespace