ImageBuffer.SaveAsJpeg Method

Saves the contents of the buffer to a JPEG compressed file to disk.
Syntax:
[C#]
public void SaveAsJpeg(string Filename, int Quality);
Parameter Description
Filename

The name of the file to which the buffer is saved.

Quality

Desired image quality. Should be in the range between 0 and 100.

Information:

Introduced in version 2.0

Sample:

This example shows how to save the contents of an ImageBuffer to a file called "test.jpg":

[C#]
ImageBuffer buf = ICImagingControl1.ImageBuffers[0]; buf.SaveAsJpeg("test.jpg", 100);
See also: ImageBuffer, ImageBuffer.SaveAsBitmap, ImageBuffer.SaveAsTiff

<< ImageAvailableEventArgs.ImageBuffer