GroupDocs.Redaction for .NET은 귀하의 .NET 앱에서 콘텐츠를 신속하게 보호하도록 돕습니다.
- Redactor 객체를 생성하고 Photo 파일의 경로를 지정합니다.
- 필요에 맞게 정리 매개변수를 조정합니다.
- 이미지 영역을 선택하고 오버레이 색상을 설정합니다.
- 정리를 실행하고 보호된 파일을 저장합니다.
GroupDocs.Redaction for .NET은 귀하의 .NET 앱에서 콘텐츠를 신속하게 보호하도록 돕습니다.
// PHOTO 파일에서 이미지에 오버레이 적용하기
// Redactor를 사용하여 파일을 로드합니다.
using (Redactor redactor = new Redactor("input.jpeg"))
{
// 오버레이 크기 및 색상을 설정합니다.
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.jpeg"))
{
// 오버레이의 위치, 크기, 색상 설정합니다.
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를 사용하여 PHOTO 파일의 민감한 콘텐츠를 숨기거나 삭제하세요. 간단하면서도 효과적인 방법으로 공식 문서를 보호하세요.