Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NImageService Class / NativeDecodeImageData Method
Encoded image data.
The format of the data in the byte array. Cannot be null.


In This Topic
    NativeDecodeImageData Method (NImageService)
    In This Topic
    Decodes the specified image data, using the image decoding capabilities of the underlying platform. Must be implemented in the image service of a platform host.
    Syntax
    'Declaration
     
    
    Protected MustOverride Function NativeDecodeImageData( _
       ByVal imageBytes() As System.Byte, _
       ByVal imageFormat As NImageFormat _
    ) As NRaster
    'Usage
     
    
    Dim instance As NImageService
    Dim imageBytes() As System.Byte
    Dim imageFormat As NImageFormat
    Dim value As NRaster
     
    value = instance.NativeDecodeImageData(imageBytes, imageFormat)
    protected abstract NRaster NativeDecodeImageData( 
       System.byte[] imageBytes,
       NImageFormat imageFormat
    )

    Parameters

    imageBytes
    Encoded image data.
    imageFormat
    The format of the data in the byte array. Cannot be null.

    Return Value

    Returns a raster that contains the decoded image data. Returns null if the decoding was not successful.
    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