NevronOpenVision
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
    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