Document Library for WPF | ComponentOne
C1.WPF.Document.4.5.2 Assembly / C1.WPF.Document Namespace / Utils Class / WriteImageToFile Method

In This Topic
    WriteImageToFile Method
    In This Topic
    Writes specified image to file.
    Syntax
    'Declaration
     
    Public Shared Function WriteImageToFile( _
       ByVal image As Image, _
       ByVal imageFormat As ImageFormat, _
       ByVal fileName As String _
    ) As ImageFormat
    public static ImageFormat WriteImageToFile( 
       Image image,
       ImageFormat imageFormat,
       string fileName
    )

    Parameters

    image
    imageFormat
    fileName

    Return Value

    Returns null if error occurs during writing or System.Drawing.Imaging.ImageFormat which was actually used to save an image.
    See Also