Initializes a new ImageAreaRedaction for redacting a specific rectangular area.
def__init__(self,top_left,options):...
Parameter
Type
Description
top_left
Point
Top-left area coordinates.
options
RegionReplacementOptions
Area size and color.
Example
fromgroupdocs.redaction.redactionsimportImageAreaRedaction,RegionReplacementOptionsfromgroupdocs.redaction.options.drawingimportPoint,Size,Color# Define the top-left corner and size of the area to redactpoint=Point(385,485)size=Size(1793,2069)# Define the redaction box colorcolor=Color.from_argb(255,220,20,60)# Create replacement options and the redaction instancerepl_opt=RegionReplacementOptions(color,size)img_red=ImageAreaRedaction(point,repl_opt)