ImageGear .NET
SavePresState Method
Example 




Stream to save presentation state to.
Presentation state metadata.
Saves Presentation State metadata to a Presentation State object.
Syntax
'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
) 

Parameters

stream
Stream to save presentation state to.
metadata
Presentation state metadata.
Remarks
Use PreparePresStateMetadata method to extract presentation state settings from page and pageDisplay and build metadata for presentation state.

This method expects DICOM metadata tree in the metadata parameter:

Example
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
See Also

Reference

ImGearDICOM Class
ImGearDICOM Members
ImGearMetadataHead Class

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback