Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NImage Class / SaveToFileAsync Method / SaveToFileAsync(NFile,NImageFormat,NImageEncoderSettings,ENCodecPreference) Method


In This Topic
    SaveToFileAsync(NFile,NImageFormat,NImageEncoderSettings,ENCodecPreference) Method
    In This Topic
    Saves the image to the given file in the specified format using the specified encoder settings and preference. If the file already exists, it is overwritten.
    Syntax
    'Declaration
     
    
    Public Overloads Function SaveToFileAsync( _
       ByVal file As NFile, _
       ByVal imageFormat As NImageFormat, _
       ByVal settings As NImageEncoderSettings, _
       ByVal encoderPreference As ENCodecPreference _
    ) As NPromise(Of NUndefined)
    'Usage
     
    
    Dim instance As NImage
    Dim file As NFile
    Dim imageFormat As NImageFormat
    Dim settings As NImageEncoderSettings
    Dim encoderPreference As ENCodecPreference
    Dim value As NPromise(Of NUndefined)
     
    value = instance.SaveToFileAsync(file, imageFormat, settings, encoderPreference)

    Parameters

    file
    imageFormat
    settings
    encoderPreference
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also