Property BackgroundColor
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
BackgroundColor
Gets or sets the background color of produced images.
public PdfColor? BackgroundColor { get; set; }
Property Value
- PdfColor
The background color of produced images.
Remarks
The null
value means transparent background.
Transparent backgrounds are only supported for RGB PNG, RGB TIFF, and CMYK TIFF output images.
The output format is controlled by the Compression property.
When background is transparent, the output image contains an additional 8 bit alpha
channel. The actual number of bits per pixel for such images equals to
BitsPerPixel + 8
. For example, 32 bpp for
transparent RGB images and 40 bpp for transparent CMYK images. You can check the bits
per pixel value using the Compression property.
The Convert PDF to image in C# and VB.NET article contains examples of using this property.