 | ImageRedact Method |
Redact rectangular part of the image
Redacts a part of the image specified by a rectangle, by changing the content of the image.
This is not an annotation, the image data is changed and there will be no way to get the original data from the image itself.
The content is changed by setting all pixels to the same color.
This color, in general, is black, but that depends on the color space of the image.
Namespace: PdfTools.Toolbox.Pdf.ContentAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.5.0+4edba55c604d55d1acd3b42825576b5d5e0943f1
Syntaxpublic void Redact(
Rectangle rect
)
Parameters
- rect Rectangle
-
Defines rectangular part of the image which is to be redacted.
If the rectangle is not completely within the image boundaries, only the part that is within the boundaries will be redacted.
ExceptionsException | Condition |
---|
ArgumentException | if the rect argument is invalid |
See Also