Loads Presentation State object and applies it to an image.
Syntax
Parameters
- stream
- Stream, containing presentation state object.
- page
- Page to apply Presentation State to.
- pageDisplay
- PageDisplay to apply Presentation State to.
- options
- Options structure, tells which settings need to be applied.
Return Value
New instance of
ImageGear.Core.ImGearMetadataHead class object, containing metadata loaded from the Presentation State object.
Example
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
See Also