Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NImageService Class / DecodeImageData Method
Encoded image data.
Index of the frame to decode.
The format of the data in the byte array. Set to null if the format is not known.
Preferences for the used decoder (NOV vs. native).


In This Topic
    DecodeImageData Method
    In This Topic
    Decodes the specified image data.
    Syntax
    'Declaration
     
    
    Public Function DecodeImageData( _
       ByVal imageBytes() As System.Byte, _
       ByVal frameIndex As System.Integer, _
       ByVal imageFormat As NImageFormat, _
       ByVal decoderPreference As ENCodecPreference _
    ) As NRaster
    'Usage
     
    
    Dim instance As NImageService
    Dim imageBytes() As System.Byte
    Dim frameIndex As System.Integer
    Dim imageFormat As NImageFormat
    Dim decoderPreference As ENCodecPreference
    Dim value As NRaster
     
    value = instance.DecodeImageData(imageBytes, frameIndex, imageFormat, decoderPreference)
    public NRaster DecodeImageData( 
       System.byte[] imageBytes,
       System.int frameIndex,
       NImageFormat imageFormat,
       ENCodecPreference decoderPreference
    )

    Parameters

    imageBytes
    Encoded image data.
    frameIndex
    Index of the frame to decode.
    imageFormat
    The format of the data in the byte array. Set to null if the format is not known.
    decoderPreference
    Preferences for the used decoder (NOV vs. native).

    Return Value

    Returns a raster object that contains the decoded image data.
    Remarks
    The method throws an exception if it fails to decode the image data.
    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