Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
DICOM 标准由国家电气制造商协会制定。该格式涵盖创建、存储、传输和打印单个图像帧、帧系列、患者信息、研究、设备、机构、进行检查的医疗人员等功能。
以下代码片段还可以与 Aspose.PDF.Drawing 库一起使用。
Aspose.PDF for .NET 支持将 DICOM 图像添加到 PDF 文档的功能。以下代码片段演示了如何使用此功能。
// 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");
}
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.