XFINIUM.PDF Documentation
Save Method (PdfVisualImage)



Xfinium.Pdf.Content Namespace > PdfVisualImage Class : Save Method
Destination stream where the image will be saved.
Format used for saving the image.
Saves the image to the stream.
Syntax
'Declaration
 
Public Sub Save( _
   ByVal stream As Stream, _
   ByVal imageSaveFormat As PdfVisualImageSaveFormat _
) 
'Usage
 
Dim instance As PdfVisualImage
Dim stream As Stream
Dim imageSaveFormat As PdfVisualImageSaveFormat
 
instance.Save(stream, imageSaveFormat)

Parameters

stream
Destination stream where the image will be saved.
imageSaveFormat
Format used for saving the image.
Exceptions
ExceptionDescription
Thrown when the Save method is called on an image that has been extracted without its data, PdfContentExtractor.ExtractImages method has been called using 'false' as its parameter.
- or -
when the image format is JPEG2000 and the imageSaveFormat is not PdfVisualImageSaveFormat.Native.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfVisualImage Class
PdfVisualImage Members