ImageGear22.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearDICOMDisplaySettings Class : UpdateFromMetadata(ImGearMetadataHead) Method |
'Declaration Public Sub UpdateFromMetadata( _ ByVal metadata As ImGearMetadataHead _ )
'Usage Dim instance As ImGearDICOMDisplaySettings Dim metadata As ImGearMetadataHead instance.UpdateFromMetadata(metadata)
public void UpdateFromMetadata( ImGearMetadataHead metadata )
public: void UpdateFromMetadata( ImGearMetadataHead* metadata )
public: void UpdateFromMetadata( ImGearMetadataHead^ metadata )
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.
ImGearRasterPage rasterPage = (ImGearRasterPage)igPage;
ImGearDICOMDisplaySettings dicomDisplaySettings = new ImGearDICOMDisplaySettings();
dicomDisplaySettings.UpdateFromMetadata(rasterPage.Metadata);
Dim rasterPage As ImGearRasterPage = igPage Dim dicomDisplaySettings As ImGearDICOMDisplaySettings = New ImGearDICOMDisplaySettings() dicomDisplaySettings.UpdateFromMetadata(rasterPage.Metadata)