ImageGear for .NET
CreateFromChannelSpec Method
See Also  Example Send Feedback
ImageGear21.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearVOIWindow Structure : CreateFromChannelSpec Method




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.

Glossary Item Box

Creates a VOI Window transform based on channel depth and signed attribute.

Syntax

 
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.

Remarks

Transform is initialized according to minimum and maximum possible values of a signed or unsigned pixel.

Example

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 BasicCopy 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

See Also

©2013. Accusoft Corporation. All Rights Reserved.