GroupDocs.Redaction for .NET Main Features

Hide Image Content in PHOTO Files with Overlays Using .NET

Protect personal and business images in PHOTO files using C#. Easy-to-use tools for effective content protection.

Secure Content in Photo Files

GroupDocs.Redaction for .NET makes it quick and simple to protect content in your .NET apps.

  1. Create a Redactor object and point it to your Photo file.
  2. Adjust redaction settings for your needs.
  3. Choose image areas and set overlay color.
  4. Run the redaction and save the secured file.
// Apply overlays to hide images in PHOTO

// Load the file with Redactor
using (Redactor redactor  = new Redactor("input.jpeg"))
{
    // Configure overlay size and color
    Size replacement_size = new Size(100, 100);
    var replacement_options = new RegionReplacementOptions(Color.Blue, replacement_size);

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

Easily Redact Sensitive Content

GroupDocs.Redaction for .NET helps you hide or delete sensitive content in many file types. Protect private data while keeping your documents clean and easy to read.

All-in-One Redaction Tools

Edit Text in Documents

Search and replace private text in your documents to secure sensitive information.

Hide Image Areas

Add overlays to images or selected parts to cover sensitive visuals.

Clean Metadata

Remove hidden metadata to avoid accidental data leaks.

Hide Image Data with Overlays

This code example shows how to cover image areas in a file using overlays.

C#

//  Load the file for editing
using (Redactor redactor  = new Redactor("source.jpeg"))
{
    // Set overlay position, size, and color
    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);

    // Target a specific 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))
    };

    // Apply overlay to mask image
    redactor.Apply(redaction);

    // Save the redacted 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

About GroupDocs.Redaction for .NET

GroupDocs.Redaction for .NET gives C# developers a powerful way to hide or delete content in PHOTO files. Protect documents by masking text, images, and metadata quickly.
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.

Protect PHOTO Files with .NET Redactions

With .NET, you can hide or delete private content in PHOTO files. A simple and effective way to secure official documents.

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