ImageGear21.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearDICOM Class : SavePresState Method |
'Declaration Public Shared Sub SavePresState( _ ByVal stream As Stream, _ ByVal metadata As ImGearMetadataHead _ )
'Usage Dim stream As Stream Dim metadata As ImGearMetadataHead ImGearDICOM.SavePresState(stream, metadata)
public static void SavePresState( Stream stream, ImGearMetadataHead metadata )
public: static void SavePresState( Stream* stream, ImGearMetadataHead* metadata )
public: static void SavePresState( Stream^ stream, ImGearMetadataHead^ metadata )
This method expects DICOM metadata tree in the metadata
parameter:
ImGearPresStateOptions options = new ImGearPresStateOptions(); ImGearMetadataHead presStateMetadata = ImGearDICOM.PreparePresStateMetadata( (ImGearRasterPage)igPage, igPageView.Display, presStateOrigMetadata, options); using(FileStream fileContent = new FileStream(fileName, FileMode.Create)) { ImGearDICOM.SavePresState(fileContent, presStateMetadata); }
Dim options As ImGearPresStateOptions = New ImGearPresStateOptions() Dim presStateMetadata As ImGearMetadataHead = ImGearDICOM.PreparePresStateMetadata(igPage, igPageView.Display, presStateOrigMetadata, options) Using fileContent = New FileStream(fileName, FileMode.Create) ImGearDICOM.SavePresState(fileContent, presStateMetadata) End Using