'Declaration Public Overloads Sub SaveToImageFile( _ ByVal fileName As String, _ ByVal pixelFormat As PixelFormat, _ ByVal imageFormat As ImageFormat, _ ByVal quality As Integer, _ ByVal grayscale As Boolean _ )
'Usage Dim instance As ImageExport Dim fileName As String Dim pixelFormat As PixelFormat Dim imageFormat As ImageFormat Dim quality As Integer Dim grayscale As Boolean instance.SaveToImageFile(fileName, pixelFormat, imageFormat, quality, grayscale)
public void SaveToImageFile( string fileName, PixelFormat pixelFormat, ImageFormat imageFormat, int quality, bool grayscale )
Parameters
- fileName
- full file name
- pixelFormat
- the pixel format used to render the image
- imageFormat
- the image format used to store the image
- quality
- quality parameter in the case of JPEG in percent. For best quality use 100.
- grayscale
- whether or not to convert the image to grayscale