ImageGear for .NET
UpdateFromMetadata(ImGearMetadataHead) Method
See Also  Example Send Feedback
ImageGear21.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearDICOMDisplaySettings Class : UpdateFromMetadata(ImGearMetadataHead) Method




metadata
DICOM Metadata, from which display settings shall be obtained.

Glossary Item Box

Updates the object from DICOM metadata.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

metadata
DICOM Metadata, from which display settings shall be obtained.

Remarks

This method updates ImGearDICOMDisplaySettings class object from DICOM metadata. It sets the following members:
  • Modality
  • VOI
  • Inverted

Presentation State metadata uses a different structure than metadata of a DICOM image. To update ImGearDICOMDisplaySettings class from presentation state metadata, use UpdateFromPresStateMetadata(ImGearMetadataHead) method.

NOTE:

This method does not update DisplaySummaryLUT property. Use UpdateDisplaySummaryLUT method for this.

Example

C#Copy Code
ImGearRasterPage rasterPage = (ImGearRasterPage)igPage;
ImGearDICOMDisplaySettings dicomDisplaySettings = new ImGearDICOMDisplaySettings();
dicomDisplaySettings.UpdateFromMetadata(rasterPage.Metadata);
Visual BasicCopy Code
Dim rasterPage As ImGearRasterPage = igPage
Dim dicomDisplaySettings As ImGearDICOMDisplaySettings = New ImGearDICOMDisplaySettings()
dicomDisplaySettings.UpdateFromMetadata(rasterPage.Metadata)

See Also

©2013. Accusoft Corporation. All Rights Reserved.