DICOM 이미지 지원

Contents
[ ]

DICOM 표준은 미국 전기기계 제조업체 협회(NEMA)에 의해 개발되었습니다. 이 형식은 개별 이미지 프레임, 프레임 시리즈, 환자 정보, 연구, 장비, 기관, 검사를 수행하는 의료 인력 등을 생성, 저장, 전송 및 인쇄하는 기능을 포함합니다.

다음 코드 스니펫은 Aspose.PDF.Drawing 라이브러리와 함께 작동합니다.

Aspose.PDF for .NET은 PDF 문서에 DICOM 이미지를 추가하는 기능을 지원합니다. 다음 코드 스니펫은 이 기능을 사용하는 방법을 보여줍니다.

// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void AddDicomImageToPDF()
{
    // The path to the documents directory
    var dataDir = RunExamples.GetDataDir_AsposePdf_Images();

    // Create PDF document
    using (var document = new Aspose.Pdf.Document())
    {
        // Add page
        var page = document.Pages.Add();

        // Create an image instance and set its properties
        var image = new Aspose.Pdf.Image
        {
            FileType = Aspose.Pdf.ImageFileType.Dicom,
            ImageStream = new FileStream(dataDir + "DicomImage.dcm", FileMode.Open, FileAccess.Read)
        };

        // Add image to the first page
        page.Paragraphs.Add(image);

        // Save PDF document
        document.Save(dataDir + "PdfWithDicomImage_out.pdf");
    }
}