ImageGear PDF v25.2 - Updated
SavePage(ImGearPage,Stream,Int32,ImGearSavingModes,ImGearSavingFormats) Method




ImageGear.Core Assembly > ImageGear.Formats Namespace > ImGearFileFormats Class > SavePage Method : SavePage(ImGearPage,Stream,Int32,ImGearSavingModes,ImGearSavingFormats) Method
ImageGear page to save.
NET stream to write an image to.
Specifies page number in the image where to put a new page. New page can replace current page, or be inserted depending on the mode parameter.
Specifies how new page should be saved to an image; replace page, insert page, append page, or overwrite the entire image.Any time SavePage is used with ImGearSavingModes.APPEND, the stream must be at the beginning of the file to be appended to.
The format to save new pages in. This is a combination of a file format and a compression (e.g., TIFF-G4).
Saves page to an image.
Syntax
'Declaration
 
Public Overloads Shared Sub SavePage( _
   ByVal page As ImGearPage, _
   ByVal stream As Stream, _
   ByVal pageNumber As Integer, _
   ByVal saveMode As ImGearSavingModes, _
   ByVal saveFormat As ImGearSavingFormats _
) 
'Usage
 
Dim page As ImGearPage
Dim stream As Stream
Dim pageNumber As Integer
Dim saveMode As ImGearSavingModes
Dim saveFormat As ImGearSavingFormats
 
ImGearFileFormats.SavePage(page, stream, pageNumber, saveMode, saveFormat)
public static void SavePage( 
   ImGearPage page,
   Stream stream,
   int pageNumber,
   ImGearSavingModes saveMode,
   ImGearSavingFormats saveFormat
)
public: static void SavePage( 
   ImGearPage* page,
   Stream* stream,
   int pageNumber,
   ImGearSavingModes saveMode,
   ImGearSavingFormats saveFormat
) 
public:
static void SavePage( 
   ImGearPage^ page,
   Stream^ stream,
   int pageNumber,
   ImGearSavingModes saveMode,
   ImGearSavingFormats saveFormat
) 

Parameters

page
ImageGear page to save.
stream
NET stream to write an image to.
pageNumber
Specifies page number in the image where to put a new page. New page can replace current page, or be inserted depending on the mode parameter.
saveMode
Specifies how new page should be saved to an image; replace page, insert page, append page, or overwrite the entire image.Any time SavePage is used with ImGearSavingModes.APPEND, the stream must be at the beginning of the file to be appended to.
saveFormat
The format to save new pages in. This is a combination of a file format and a compression (e.g., TIFF-G4).
Remarks
Both page pixel data and page metadata are saved by this method.

Note: Any time SavePage is used with ImGearSavingModes.APPEND, the stream must be at the beginning of the file to be appended to.

See Also

Reference

ImGearFileFormats Class
ImGearFileFormats Members
Overload List
ImGearPage Class
ImGearSavingModes Enumeration
ImGearSavingFormats Enumeration

Is this page helpful?
Yes No
Thanks for your feedback.