Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- inputDepth
- Depth of an image to which the Window transform will be applied.
- isSigned
- Signed attribute of an image to which the Window transform will be applied.
Return Value
ImGearVOIWindow structure object.
Transform is initialized according to minimum and maximum possible values of a signed or unsigned pixel.
C# | Copy Code |
---|---|
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); } |
Visual Basic | Copy Code |
---|---|
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 |