PdfImage.MakeTransparent Method

Makes the specified color transparent for this PdfImage.

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

Syntax

C#
public void MakeTransparent(
	PdfColor color
)
VB
Public Sub MakeTransparent ( 
	color As PdfColor
)

Parameters

color
Type: BitMiracle.Docotic.Pdf.PdfColor
The color to make transparent.

Remarks

This method must not be called for mask images (i.e. for images with IsMask property equal to true).

At this time, the method throws exception of PdfException type if the color specified by color is not an instance of PdfRgbColor class.

This method does nothing for images with non-RGB color spaces.

See Also