Key Features of GroupDocs.Redaction for .NET

Hide Private Images in IMAGE files Using Overlays with .NET

Keep sensitive business and personal images protected in IMAGE files using C#. Simple tools for fast and effective content protection.

Protect Data in Image Files with Overlays

Use GroupDocs.Redaction for .NET to quickly hide private content in your .NET applications.

  1. Create a Redactor instance and provide your Image file path.
  2. Adjust redaction settings as needed.
  3. Select image areas and define overlay colors.
  4. Process the file and save the secure version.
// Protect image content in IMAGE

// Open file using the Redactor
using (Redactor redactor  = new Redactor("input.png"))
{
    // Define overlay dimensions and colors
    Size replacement_size = new Size(100, 100);
    var replacement_options = new RegionReplacementOptions(Color.Blue, replacement_size);

    // Select the area you want to hide
    Point replacement_point = new Point(200, 200);
    var redaction = new ImageAreaRedaction(replacement_point, replacement_options);
    
    // Apply overlay and save the result
    redactor.Apply(redaction);
    redactor.Save();
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

Redact Content in Different File Formats

With GroupDocs.Redaction for .NET, you can hide or delete content across a variety of file formats. Protect sensitive data while maintaining a clean, readable format.

Full Control Over Redactions

Find and Replace Text

Search through documents and replace sensitive text to protect private information.

Overlay Images

Apply colored overlays to mask entire images or selected parts.

Edit Metadata

Remove or modify hidden metadata fields to prevent data exposure.

Cover Image Content with Overlays

This code example shows how to apply overlays to hide sensitive image content.

C#

//  Load the file for redaction
using (Redactor redactor  = new Redactor("source.png"))
{
    // Configure overlay size, color, and position
    Size replacement_size = new Size(300, 30);
    var replacement_options = new RegionReplacementOptions(Color.Blue, replacement_size);
    Point replacement_point = new Point(20, 125);
    var redaction = new ImageAreaRedaction(replacement_point, replacement_options);

    // Pick the image area on page one
    redaction.Filters = new RedactionFilter[] {
        new PageRangeFilter(PageSeekOrigin.Begin, 0, 1),
        new PageAreaFilter(new Point(0, 300), new Size(600, 600))
    };

    // Add overlay to hide image content
    redactor.Apply(redaction);

    // Save the updated file
    var save_options = new SaveOptions() { AddSuffix = true, RasterizeToPDF = false };
    var outputPath = redactor.Save(save_options);
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

What is GroupDocs.Redaction for .NET?

GroupDocs.Redaction for .NET equips C# developers with powerful tools to hide or delete content in IMAGE files. Protect your documents by masking sensitive text, images, and metadata.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Redaction for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Hide Content in IMAGE Files Using .NET Redactions

Use .NET to hide or remove sensitive data in IMAGE files. A reliable method for securing official files and protecting confidential information.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English