PdfDrawOptions.BackgroundColor Property

Gets or sets the background color of produced images.

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

Syntax

C#
public PdfColor BackgroundColor { get; set; }
VB
Public Property BackgroundColor As PdfColor
	Get
	Set

Property Value

Type: 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.

See Also