SavePage(ImGearPage,Stream,Int32,ImGearSavingModes,ImGearSavingFormats,ImGearSaveOptions) Method
In This Topic
Saves page to an image.
Syntax
'Declaration
Public Overloads Shared Sub SavePage( _
ByVal As ImGearPage, _
ByVal As Stream, _
ByVal As Integer, _
ByVal As ImGearSavingModes, _
ByVal As ImGearSavingFormats, _
ByVal 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)
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.
See Also