Initializes a new ImageAreaRedaction for redacting a specific rectangular area.
def__init__(self,top_left,options):...
Parameter
Type
Description
top_left
System.Drawing.Point
Top-left area coordinates.
options
RegionReplacementOptions
Area size and color.
Example
fromgroupdocs.redaction.redactionsimportImageAreaRedaction,RegionReplacementOptionsfromgroupdocs.pydrawingimportPoint,Size,Color# Define the top-left corner of the area to redacttop_left=Point(385,485)# Define the size and color of the redaction regionregion_options=RegionReplacementOptions(Color.from_argb(255,220,20,60),Size(1793,2069))# Create the redaction objectredaction=ImageAreaRedaction(top_left,region_options)