Saves this image to the specified filename with the given imageFormat.

Namespace: ImageSense
Assembly: ImageSense (in ImageSense.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static void SaveImage(
	this Image image,
	string filename,
	ImageFormat imageFormat
)
Visual Basic
<ExtensionAttribute> _
Public Shared Sub SaveImage ( _
	image As Image, _
	filename As String, _
	imageFormat As ImageFormat _
)
Visual C++
[ExtensionAttribute]
public:
static void SaveImage(
	Image^ image, 
	String^ filename, 
	ImageFormat^ imageFormat
)

Parameters

image
Type: System.Drawing..::..Image
The image to save.
filename
Type: System..::..String
The file where the image will be saved.
imageFormat
Type: System.Drawing.Imaging..::..ImageFormat
The format to use in the saved image.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also