NevronOpenVision
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.
GetFromExtensionAndHeader Method (NImageFormat)
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
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