ImageGear23.Formats.Dicom Assembly > ImageGear.Formats.DICOM Namespace > ImGearDICOM Class : LoadPresState Method |
'Declaration Public Shared Function LoadPresState( _ ByVal stream As Stream, _ ByVal page As ImGearRasterPage, _ ByVal pageDisplay As IImGearPageDisplay, _ ByVal options As ImGearPresStateOptions _ ) As ImGearMetadataHead
'Usage Dim stream As Stream Dim page As ImGearRasterPage Dim pageDisplay As IImGearPageDisplay Dim options As ImGearPresStateOptions Dim value As ImGearMetadataHead value = ImGearDICOM.LoadPresState(stream, page, pageDisplay, options)
public static ImGearMetadataHead LoadPresState( Stream stream, ImGearRasterPage page, IImGearPageDisplay pageDisplay, ImGearPresStateOptions options )
public: static ImGearMetadataHead* LoadPresState( Stream* stream, ImGearRasterPage* page, IImGearPageDisplay* pageDisplay, ImGearPresStateOptions options )
public: static ImGearMetadataHead^ LoadPresState( Stream^ stream, ImGearRasterPage^ page, IImGearPageDisplay^ pageDisplay, ImGearPresStateOptions options )
pageDisplay
. Specifically:
pageDisplay
;
pageDisplay
. All previous settings and annotations of the page and pageDisplay are discarded.
This method also returns all metadata found in the Presentation State object.
ImGearMetadataHead presStateOrigMetadata; using (FileStream fileContent = new FileStream(fileName, FileMode.Open)) { ImGearPresStateOptions opts = new ImGearPresStateOptions(); presStateOrigMetadata = ImGearDICOM.LoadPresState(fileContent, (ImGearRasterPage)igPage, igPageView.Display, opts); }
Dim presStateOrigMetadata As ImGearMetadataHead Using fileContent = New FileStream(fileName, FileMode.Open) Dim opts As ImGearPresStateOptions = New ImGearPresStateOptions() presStateOrigMetadata = ImGearDICOM.LoadPresState(fileContent, igPage, igPageView.Display, opts) End Using