ImageGear23.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearVOIWindow Structure : CreateFromChannelSpec Method |
'Declaration Public Shared Function CreateFromChannelSpec( _ ByVal inputDepth As Integer, _ ByVal isSigned As Boolean _ ) As ImGearVOIWindow
'Usage Dim inputDepth As Integer Dim isSigned As Boolean Dim value As ImGearVOIWindow value = ImGearVOIWindow.CreateFromChannelSpec(inputDepth, isSigned)
public static ImGearVOIWindow CreateFromChannelSpec( int inputDepth, bool isSigned )
public: static ImGearVOIWindow CreateFromChannelSpec( int inputDepth, bool isSigned )
public: static ImGearVOIWindow CreateFromChannelSpec( int inputDepth, bool isSigned )
ImGearRasterPage rasterPage = (ImGearRasterPage)igPage; ImGearDICOMDisplaySettings dicomDisplaySettings = rasterPage.DICOMDisplaySettings as ImGearDICOMDisplaySettings; if (dicomDisplaySettings != null && dicomDisplaySettings.VOI == null) { dicomDisplaySettings.VOI = new ImGearVOITransform(); dicomDisplaySettings.VOI.Window = ImGearVOIWindow.CreateFromChannelSpec(rasterPage.DIB.ChannelDepths[0], rasterPage.DIB.Signed); }
Dim rasterPage As ImGearRasterPage = igPage Dim dicomDisplaySettings As ImGearDICOMDisplaySettings = rasterPage.DICOMDisplaySettings If Not (dicomDisplaySettings Is Nothing) And dicomDisplaySettings.VOI Is Nothing Then dicomDisplaySettings.VOI = New ImGearVOITransform() dicomDisplaySettings.VOI.Window = ImGearVOIWindow.CreateFromChannelSpec(rasterPage.DIB.ChannelDepths(0), rasterPage.DIB.Signed) End If