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


In This Topic
    NativeEncodeJpg Method (NImageService)
    In This Topic
    Encodes a raster into JPEG image format, using the image encoding capabilities of the underlying platform. Must be implemented in the image service of a platform host.
    Syntax
    'Declaration
     
    
    Protected MustOverride Function NativeEncodeJpg( _
       ByVal raster As NRaster, _
       ByVal settings As NJpegEncoderSettings _
    ) As System.Byte()
    'Usage
     
    
    Dim instance As NImageService
    Dim raster As NRaster
    Dim settings As NJpegEncoderSettings
    Dim value() As System.Byte
     
    value = instance.NativeEncodeJpg(raster, settings)
    protected abstract System.byte[] NativeEncodeJpg( 
       NRaster raster,
       NJpegEncoderSettings settings
    )

    Parameters

    raster
    The raster to be encoded.
    settings
    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