Returns a RasterImage containing an image representation of a DICOM Structured Display DicomDataSet.
public static RasterImage GetStructuredDisplayImage(
this DicomDataSet dsSD,
GetSopInstanceCallBack cb,
DicomGetImageFlags getImageFlags
)
public:
[ExtensionAttribute]
static RasterImage^ GetStructuredDisplayImage(
DicomDataSet^ dsSD,
GetSopInstanceCallBack^ cb,
DicomGetImageFlags^ getImageFlags
)
dsSD
A structured display DicomDataSet.
cb
A callback method takes a SOPInstanceUID as an argument, and returns a DicomDataSet that contains the SOPInstanceUID.
getImageFlags
Flags that affect how the referenced DICOM images are displayed.
A RasterImage containing an image representation of a DICOM Structured Display DicomDataSet.
A DICOM Structured Display contains SOPInstanceUIDs of other DicomDataSet and specifies a layout containing the corresponding DicomDataSet images.
The GetStructuredDisplayImage method returns a RasterImage containing an image representation of all referenced DicomDataSet images, laid out as defined by the dsSD DicomDataSet.
using Leadtools.Dicom;
using Leadtools.Dicom.Common;
using Leadtools.Dicom.Common.Extensions;
using Leadtools;
using Leadtools.Dicom.Common.Linq.BasicDirectory;
using Leadtools.Dicom.Common.DataTypes;
using Leadtools.Codecs;
public DicomDataSet GetSopInstanceCallBack(string sopInstanceUid)
{
DicomDataSet dsImage = null;
// Find the DicomDataSet that matches sopInstanceUid
// Here we simulate this by loading an existing image
dsImage = new DicomDataSet();
dsImage.Load("image2.dcm", DicomDataSetLoadFlags.None);
return dsImage;
}
public RasterImage TestGetStructuredDisplayImage(DicomDataSet dsSD)
{
DicomExtensions.StructuredDisplayImageOptions options = new DicomExtensions.StructuredDisplayImageOptions
{
BackColor = Color.Black,
EmptyCellColor = Color.Gray,
ImageWidth = 800,
OverlayBackgroundBrush = Brushes.Yellow,
OverlayBrush = Brushes.Red,
OverlayFontName = "Courier",
OverlayFontSize = 12,
ShowOverlay = true
};
RasterImage image = dsSD.GetStructuredDisplayImage(GetSopInstanceCallBack, DicomGetImageFlags.None, options);
return image;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document