Xfinium.Pdf.Content Namespace > PdfVisualImage Class : Save Method |
'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)
public void Save( Stream stream, PdfVisualImageSaveFormat imageSaveFormat )
public: void Save( Stream^ stream, PdfVisualImageSaveFormat imageSaveFormat )
Exception | Description |
---|---|
System.InvalidOperationException | 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. |
Supported .NET Platforms: .NET 2.0 - .NET 4.6, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Windows Phone 8 & 8.1, Xamarin iOS & Android, Portable Class Library