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




ImageGear.Core Assembly > ImageGear.Formats Namespace > ImGearFileFormats Class > SavePage Method : SavePage(ImGearPage,Stream,Int32,ImGearSavingModes,ImGearSavingFormats,ImGearSaveOptions) 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).
Additional saving options such as thumbnail dimensions.
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 mode As ImGearSavingModes, _
   ByVal saveFormat As ImGearSavingFormats, _
   ByVal saveOptions As ImGearSaveOptions _
) 
'Usage
 
Dim page As ImGearPage
Dim stream As Stream
Dim pageNumber As Integer
Dim mode As ImGearSavingModes
Dim saveFormat As ImGearSavingFormats
Dim saveOptions As ImGearSaveOptions
 
ImGearFileFormats.SavePage(page, stream, pageNumber, mode, saveFormat, saveOptions)
public static void SavePage( 
   ImGearPage page,
   Stream stream,
   int pageNumber,
   ImGearSavingModes mode,
   ImGearSavingFormats saveFormat,
   ImGearSaveOptions saveOptions
)
public: static void SavePage( 
   ImGearPage* page,
   Stream* stream,
   int pageNumber,
   ImGearSavingModes mode,
   ImGearSavingFormats saveFormat,
   ImGearSaveOptions* saveOptions
) 
public:
static void SavePage( 
   ImGearPage^ page,
   Stream^ stream,
   int pageNumber,
   ImGearSavingModes mode,
   ImGearSavingFormats saveFormat,
   ImGearSaveOptions^ saveOptions
) 

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.
mode
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).
saveOptions
Additional saving options such as thumbnail dimensions.
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
ImGearSaveOptions Class

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