Package esys :: Package lsm :: Package vis :: Package core :: Module ImageFormat
[hide private]
[frames] | no frames]

Module ImageFormat

Defines the ImageFormat class and functions for mapping a file name extension to an associated ImageFormat object.

Classes [hide private]
  ImageFormat
Class representing an image format.
Functions [hide private]
 
_getDelimitedFormatNameString()
 
getFormatFromName(formatName, ext=None)
ImageFormat
getFormatFromExtension(fileName)
Returns the ImageFormat object which corresponds to a specified file name.
Variables [hide private]
  PNG = ImageFormat("PNG")
  PNM = ImageFormat("PNM")
  _nameFormatDict = dict()
Function Details [hide private]

getFormatFromExtension(fileName)

 

Returns the ImageFormat object which corresponds to a specified file name. Uses the fileName extension to try and deduce the corresponding ImageFormat object.

Parameters:
  • fileName (str) - A file name.
Returns: ImageFormat
An ImageFormat object corresponding to the specified file name (and corresponding file name extension).