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