Main Features of GroupDocs.Redaction for .NET

Cover Sensitive Images in JPEG Files with Overlays Using .NET

Keep your personal and business images safe in JPEG files using C#. Our simple tools make file protection easy and reliable.

Protect Sensitive Data in Jpeg Files

GroupDocs.Redaction for .NET is designed to help your .NET apps hide private content fast and easily.

  1. Create a Redactor object and provide the path to your Jpeg file.
  2. Set up redaction options to match your needs.
  3. Mark the image area and choose an overlay color.
  4. Run the redaction and save your protected file.
// Cover image content in JPEG files

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

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

Redact Any Content in Documents

GroupDocs.Redaction for .NET makes it simple to hide or remove content in various file formats. Protect sensitive information while keeping your files neat and easy to share.

Redaction Tools for Complete Control

Edit Text Anywhere

Find and replace sensitive text throughout your documents to protect private data.

Mask Images

Apply overlays to images or specific areas to keep sensitive visuals hidden.

Clean Metadata

Remove or update hidden metadata to prevent accidental data leaks.

Hide Image Data with Overlays

This example demonstrates how to mask sensitive image areas in files.

C#

//  Open the file for editing
using (Redactor redactor  = new Redactor("source.jpg"))
{
    // Configure overlay size, position, 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);

    // Pick 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 the overlay to hide the 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 the tools to hide or delete content in JPEG files. Cover text, images, and metadata to secure your documents with ease.
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 JPEG Files with .NET Redactions

With .NET, you can easily hide or erase sensitive content in JPEG files. A reliable solution for keeping your documents secure and professional.

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