Table of Contents

Property BitsPerPixel

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

BitsPerPixel

Get the number of bits per pixel of the opaque image.

public int BitsPerPixel { get; }

Property Value

int

The number of bits per pixel of the image without alpha channel.

Remarks

The value of this property does not include bits for an alpha channel. PNG and TIFF images, and also uncompressed raster bytes might contain an alpha channel when BackgroundColor property equals to null.

The lower the value, the less bytes will be used by the image.

Possible values for this property:

  • 1 for bitonal images
  • 8 for grayscale images
  • 24 for RGB images
  • 32 for CMYK images

The Convert PDF to image in C# and VB.NET article shows how to save PDF pages as PNG, JPG, or TIFF images.