Nevron Open Vision Documentation
Nevron.Nov.Internal Namespace / YCSI Class / NativeEncodeJpg Method
The raster to be encoded.
JPEG encoder settings.


In This Topic
    NativeEncodeJpg Method (YCSI)
    In This Topic
    Encodes a raster into JPEG image format, using the WPF image encoder.
    Syntax
    'Declaration
     
    
    Protected Overrides NotOverridable Function NativeEncodeJpg( _
       ByVal fdSI As NRaster, _
       ByVal GdSI As NJpegEncoderSettings _
    ) As System.Byte()
    'Usage
     
    
    Dim instance As YCSI
    Dim fdSI As NRaster
    Dim GdSI As NJpegEncoderSettings
    Dim value() As System.Byte
     
    value = instance.NativeEncodeJpg(fdSI, GdSI)
    protected override System.byte[] NativeEncodeJpg( 
       NRaster fdSI,
       NJpegEncoderSettings GdSI
    )

    Parameters

    fdSI
    The raster to be encoded.
    GdSI
    JPEG encoder settings.

    Return Value

    A byte array containing the encoded image data. Returns null if the encoding fails.
    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