Click or drag to resize
Pdftools logo

PngImageOptions Class

The settings for PNG output images

For the output file name, it is recommended to use the file extension ".png".
Inheritance Hierarchy
SystemObject
  PdfTools.InternalNativeBase
    PdfTools.InternalNativeObject
      PdfTools.Pdf2ImageImageOptions
        PdfTools.Pdf2ImagePngImageOptions

Namespace: PdfTools.Pdf2Image
Assembly: PdfTools (in PdfTools.dll) Version: 1.20.0+32c3b3a21152d09e640f60dd999580d661b73c71
Syntax
C#
public class PngImageOptions : ImageOptions

The PngImageOptions type exposes the following members.

Constructors
 NameDescription
Public methodPngImageOptions 
Top
Properties
 NameDescription
Public propertyBackground

Combine a background with the image

This property allows a choice of which background to combine with the image.

Default: White

Public propertyBitsPerPixel

The number of bits per pixel for indexed output

Get or set the index width used for indexed (palette) output. The value determines the maximum number of palette colors (2 to the power of the bits per pixel), and hence the file size. Valid values are 1, 2, 4 and 8.

This property only applies when Indexed is selected as the ColorSpace; it is ignored for Rgb and Gray.

Default: 8

Public propertyColorSpace

The color space of the output image

Get or set the color space.

Default: Rgb

Top
Methods
 NameDescription
Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Top
See Also