Saves this image as a Png to the specified stream with the given pixelFormat.

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

Syntax

C#
public static void SavePng(
	this Image image,
	Stream stream,
	PixelFormat pixelFormat
)
Visual Basic
<ExtensionAttribute> _
Public Shared Sub SavePng ( _
	image As Image, _
	stream As Stream, _
	pixelFormat As PixelFormat _
)
Visual C++
[ExtensionAttribute]
public:
static void SavePng(
	Image^ image, 
	Stream^ stream, 
	PixelFormat pixelFormat
)

Parameters

image
Type: System.Drawing..::..Image
The image to save.
stream
Type: System.IO..::..Stream
The stream where the image will be saved.
pixelFormat
Type: System.Drawing.Imaging..::..PixelFormat
The pixel 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