ImageCompressionOptions.BitsPerPixel Property

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

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)


public int BitsPerPixel { get; }
Public ReadOnly Property BitsPerPixel As Integer

Property Value

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


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

See Also