Version 26.9 removes System.Drawing types from the public API. Color, point, size, rectangle, and font values used by redactions now come from GroupDocs.Redaction.Options.Drawing.
Code that still passes System.Drawing.Color, System.Drawing.Point, System.Drawing.Size, System.Drawing.Rectangle, or System.Drawing.Font will no longer compile. Replace these arguments with the corresponding types from GroupDocs.Redaction.Options.Drawing:
Color still exposes named colors (Color.Black, Color.Blue, and the other well-known names), Color.FromName, and Color.FromArgb.
Earlier 26.x builds kept the System.Drawing members and added temporary aliases that used the GroupDocs types. In 26.9 those aliases are obsolete. Use the original member names; they now use GroupDocs.Redaction.Options.Drawing:
Obsolete alias
Use instead
ReplacementOptions.BoxFillColor
ReplacementOptions.BoxColor
RegionReplacementOptions.AreaFillColor
RegionReplacementOptions.FillColor
RegionReplacementOptions.AreaSize
RegionReplacementOptions.Size
ImageAreaRedaction.TopLeftPosition
ImageAreaRedaction.TopLeft
PageAreaFilter.AreaRectangle
PageAreaFilter.Rectangle
TextFragment.BoundingRectangle
TextFragment.Rectangle
IImageFormatInstance.EditArea accepts GroupDocs.Redaction.Options.Drawing.Point only. TextFragment accepts GroupDocs.Redaction.Options.Drawing.Rectangle only. Map coordinates from an OCR engine into that rectangle before you create a fragment.
Packages for .NET 6, .NET 8, and .NET 10 no longer depend on System.Drawing.Common. Image-area redaction and PDF rasterization on those frameworks do not require GDI+ or libgdiplus. The .NET Framework 4.6.2 build still uses the Windows GDI+ stack.
For more code examples and specific use cases please refer to our Developer Guide documentation or GitHub samples and showcases.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.