Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NImageFormat Class / GetFromExtensionAndHeader Method
A file name extenstion without the dot (.e.g. "png", "jpg", etc.). You can use NSystem.GetExtensionFromFileName(fileName) to get an extension from file name.
The header of the image.


In This Topic
    GetFromExtensionAndHeader Method (NImageFormat)
    In This Topic
    Returns the image format that matches the given extension and header or null if the image format is not currently supported by NOV. The header is evaluated first, if it's null or no match is found, the extension is evaluated.
    Syntax
    'Declaration
     
    
    Public Shared Function GetFromExtensionAndHeader( _
       ByVal extension As System.String, _
       ByVal header() As System.Byte _
    ) As NImageFormat
    'Usage
     
    
    Dim extension As System.String
    Dim header() As System.Byte
    Dim value As NImageFormat
     
    value = NImageFormat.GetFromExtensionAndHeader(extension, header)
    public static NImageFormat GetFromExtensionAndHeader( 
       System.string extension,
       System.byte[] header
    )

    Parameters

    extension
    A file name extenstion without the dot (.e.g. "png", "jpg", etc.). You can use NSystem.GetExtensionFromFileName(fileName) to get an extension from file name.
    header
    The header of the image.
    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