C# Class WebApplications.Utilities.GraphicExtensions

Datei anzeigen Open project: webappsuk/CoreLibraries

Public Methods

Method Description
GetGraphicFormat ( [ bytes ) : GraphicFormat

Gets the image format from the header of the image data.

See (amongst others) http://www.garykessler.net/library/file_sigs.html

ToGraphicFormat ( [ format ) : GraphicFormat

Converts a system image format to the Traveller enumeration equivalent.

Private Methods

Method Description
ToImageFormat ( this format ) : ImageFormat

Method Details

GetGraphicFormat() public static method

Gets the image format from the header of the image data.
See (amongst others) http://www.garykessler.net/library/file_sigs.html
public static GetGraphicFormat ( [ bytes ) : GraphicFormat
bytes [ The bytes.
return GraphicFormat

ToGraphicFormat() public static method

Converts a system image format to the Traveller enumeration equivalent.
public static ToGraphicFormat ( [ format ) : GraphicFormat
format [ The format.
return GraphicFormat