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 = <esys.lsm.vis.core.imageFormat.ImageFormat object>
  PNM = <esys.lsm.vis.core.imageFormat.ImageFormat object>
  _nameFormatDict = {'PNG': <esys.lsm.vis.core.imageFormat.Image...
  __package__ = 'esys.lsm.vis.core'
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).

Variables Details [hide private]

_nameFormatDict

Value:
{'PNG': <esys.lsm.vis.core.imageFormat.ImageFormat object>,
 'PNM': <esys.lsm.vis.core.imageFormat.ImageFormat object>}