GroupDocs.Redaction for .NET을 사용하여 귀하의 .NET 애플리케이션에서 개인 콘텐츠를 신속하게 숨깁니다.
- Redactor 인스턴스를 생성하고 Image 파일의 경로를 제공합니다.
- 필요에 맞게 정리 설정을 조정합니다.
- 이미지 영역을 선택하고 오버레이 색상을 정의합니다.
- 파일을 처리하고 안전한 버전을 저장하세요.
GroupDocs.Redaction for .NET을 사용하여 귀하의 .NET 애플리케이션에서 개인 콘텐츠를 신속하게 숨깁니다.
// IMAGE에서 이미지 콘텐츠 보호하기
// 파일을 Redactor로 열어서 사용하세요.
using (Redactor redactor = new Redactor("input.png"))
{
// 오버레이 크기와 색상 정의하기
Size replacement_size = new Size(100, 100);
var replacement_options = new RegionReplacementOptions(Color.Blue, replacement_size);
// 숨길 영역 선택하기
Point replacement_point = new Point(200, 200);
var redaction = new ImageAreaRedaction(replacement_point, replacement_options);
// 오버레이를 적용하고 결과를 저장합니다.
redactor.Apply(redaction);
redactor.Save();
}
GroupDocs.Redaction for .NET을 사용하면 다양한 파일 형식에서 콘텐츠를 숨기거나 삭제할 수 있습니다. 민감한 데이터를 보호하면서 심플하고 읽기 쉬운 형식을 유지하세요.
문서 내에서 민감한 텍스트를 검색하고 교체하여 개인 정보를 보호하세요.
색상 오버레이를 적용하여 전체 이미지나 특정 부분을 마스킹하세요.
숨겨진 메타데이터 필드를 삭제하거나 수정하여 데이터 노출을 방지합니다.
// 정리를 위한 파일 로드하기
using (Redactor redactor = new Redactor("source.png"))
{
// 오버레이 크기, 색상 및 위치를 설정합니다.
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);
// 첫 페이지에서 이미지 영역 선택하기
redaction.Filters = new RedactionFilter[] {
new PageRangeFilter(PageSeekOrigin.Begin, 0, 1),
new PageAreaFilter(new Point(0, 300), new Size(600, 600))
};
// 이미지 콘텐츠 숨기기 위해 오버레이 추가하기
redactor.Apply(redaction);
// 업데이트된 파일을 저장합니다.
var save_options = new SaveOptions() { AddSuffix = true, RasterizeToPDF = false };
var outputPath = redactor.Save(save_options);
}
.NET를 사용하여 IMAGE 파일에서 민감한 데이터를 숨기거나 제거하세요. 공식 파일 보강과 기밀 정보 보호를 위한 신뢰할 수 있는 방법입니다.