IronOCR에서 다양한 처리로 이미지 저장
Curtis Chau
업데이트됨: 2026년 7월 6일
다양한 이미지 처리/이미지 필터가 적용된 이미지를 저장하려면 어떻게 해야 하나요?
다음 간단한 코드 예제를 적용하세요:
// Create a new instance of OcrInput and load the image from a text box input for file path.
OcrInput input = new OcrInput();
input.LoadImage(browsFile_txt.Text);
// Apply a grayscale filter to the image.
input.ToGrayScale();
// Iterate through each page in the OcrInput object.
foreach (var p in input.GetPages())
{
// Save each processed page as an image with a unique timestamped filename.
p.SaveAsImage($"{outputPath}\\{DateTime.Now.ToString("yyyyMMddHHmmss")}.png");
}' Create a new instance of OcrInput and load the image from a text box input for file path.
Dim input As New OcrInput()
input.LoadImage(browsFile_txt.Text)
' Apply a grayscale filter to the image.
input.ToGrayScale()
' Iterate through each page in the OcrInput object.
For Each p In input.GetPages()
' Save each processed page as an image with a unique timestamped filename.
p.SaveAsImage($"{outputPath}\{DateTime.Now.ToString("yyyyMMddHHmmss")}.png")
Next' Create a new instance of OcrInput and load the image from a text box input for file path.
Dim input As New OcrInput()
input.LoadImage(browsFile_txt.Text)
' Apply a grayscale filter to the image.
input.ToGrayScale()
' Iterate through each page in the OcrInput object.
For Each p In input.GetPages()
' Save each processed page as an image with a unique timestamped filename.
p.SaveAsImage($"{outputPath}\{DateTime.Now.ToString("yyyyMMddHHmmss")}.png")
NextIronOCR에서 사용할 수 있는 이미지 최적화 필터의 전체 목록은 IronOCR 이미지 필터를 참조하세요.
MSDN 스타일 클래스 문서 - OcrInput 메서드
커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.