Method MakeTransparent
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
MakeTransparent(PdfColor)
Makes the specified color transparent for this PdfImage.
public void MakeTransparent(PdfColor color)
Parameters
color
PdfColorThe color to make transparent.
Remarks
This method must not be called for mask images (i.e. for images with IsMask property equal to true
).
color
must be an instance of PdfRgbColor class.
This method does nothing for images with non-RGB color spaces.
Exceptions
- UnexpectedStructureException
The value in the internal PDF structure has an unexpected type.
- PdfException
color
is not an instance of PdfRgbColor class.- InvalidOperationException
The image is a mask (IsMask is
true
) and therefore can not have transparent pixels.- ArgumentNullException
color
isnull
.