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()
ImageFormat
getFormatFromExtension(fileName)
Returns the ImageFormat object which corresponds to a specified file name.
 
getFormatFromName(formatName, ext=None)
Variables [hide private]
  PNG = <esys.lsm.vis.core.ImageFormat.ImageFormat object at 0x2...
  PNM = <esys.lsm.vis.core.ImageFormat.ImageFormat object at 0x2...
  __package__ = 'esys.lsm.vis.core'
  _nameFormatDict = {'PNG': <esys.lsm.vis.core.ImageFormat.Image...
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]

PNG

Value:
<esys.lsm.vis.core.ImageFormat.ImageFormat object at 0x29f2ad0>

PNM

Value:
<esys.lsm.vis.core.ImageFormat.ImageFormat object at 0x29f2b10>

_nameFormatDict

Value:
{'PNG': <esys.lsm.vis.core.ImageFormat.ImageFormat object at 0x29f2ad0\
>,
 'PNM': <esys.lsm.vis.core.ImageFormat.ImageFormat object at 0x29f2b10\
>}