Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / ImageExport Class / SaveToImageFile Method / SaveToImageFile(String,PixelFormat,ImageFormat,Int32,Boolean) Method
full file name
the pixel format used to render the image
the image format used to store the image
quality parameter in the case of JPEG in percent. For best quality use 100.
whether or not to convert the image to grayscale


In This Topic
    SaveToImageFile(String,PixelFormat,ImageFormat,Int32,Boolean) Method
    In This Topic
    Saves the current chart image to a file using the dimensions of the control.
    Syntax
    '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
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also