SaveImage(String,ImageFormat,Boolean) Method

Example 

Image format to save the file in, for example ImageFormat.Tiff
Save original/user-defined resolution
Generic method that will save the image in the specified ImageFormat.

Syntax

'Declaration
 
Public Overloads Sub SaveImage( _
   ByVal fileName As String, _
   ByVal format As ImageFormat, _
   ByVal saveResolution As Boolean _
) 

Parameters

fileName
format
Image format to save the file in, for example ImageFormat.Tiff
saveResolution
Save original/user-defined resolution

Example

// Save image to file system in the selected format
image.SaveImage(@"C:\MyImages\Output.tif", ImageFormat.Tiff, true);

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

This documentation was created using Document! X from Innovasys