'Declaration Public Overloads Sub SaveToImageFile( _ ByVal fileName As String, _ ByVal dimensions As Size, _ 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 dimensions As Size Dim pixelFormat As PixelFormat Dim imageFormat As ImageFormat Dim quality As Integer Dim grayscale As Boolean instance.SaveToImageFile(fileName, dimensions, pixelFormat, imageFormat, quality, grayscale)
public void SaveToImageFile( string fileName, Size dimensions, PixelFormat pixelFormat, ImageFormat imageFormat, int quality, bool grayscale )
Parameters
- fileName
- full file name
- dimensions
- the dimensions of the image in pixels
- 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