RegionReplacementOptions Class |
Namespace: GroupDocs.Redaction.Redactions
The RegionReplacementOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | RegionReplacementOptions(Color, Size) |
Initializes a new instance of RegionReplacementOptions class.
|
![]() | RegionReplacementOptions(Color, Font, String) |
Initializes a new instance of RegionReplacementOptions class which size matches given text.
|
Name | Description | |
---|---|---|
![]() | FillColor |
Gets or sets the color to fill the redacted area.
|
![]() | Size |
Gets or sets the rectangle with and height.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
The following example demonstrates replacing an area within the image with a solid color rectangle.
using (Redactor redactor = new Redactor("D:\\test.jpg")) { System.Drawing.Point samplePoint = new System.Drawing.Point(516, 311); System.Drawing.Size sampleSize = new System.Drawing.Size(170, 35); RedactorChangeLog result = redactor.Apply(new ImageAreaRedaction(samplePoint, new RegionReplacementOptions(System.Drawing.Color.Blue, sampleSize))); if (result.Status != RedactionStatus.Failed) { redactor.Save(); }; }