Package FreeImagePy :: Module buffer :: Class IO
[show private | hide private]
[frames | no frames]

Type IO

object --+
         |
        IO

Known Subclasses:
FileIO

Wrapped FreeImageIO structure used by the handle functions. Implement the callback functions as instance methods.

Has the virtual methods ReadProc, WriteProc, SeekProc and TellProc.

Author: Lenard Lindstrom

Method Summary
  __init__(self, fi)
(type, value, traceback) _exc_info()
Return information about the most recent exception caught by an except clause in the current stack frame or in an older stack frame.
int getType(self)
GetFileType from handle
int load(self, fif, flags)
Load an image from the source this instance represents.
  ReadProc(self, buffer, size, count)
Dummy read proc.
int save(self, fif, bitmap, flags)
Save an image to the destination this instance represents.
  SeekProc(self, offset, origin)
Dummy seek proc.
  TellProc(self)
Dummy tell proc.
  WriteProc(self, buffer, size, count)
Dummy write proc.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

getType(self)

GetFileType from handle
Returns:
fif type
           (type=int)

load(self, fif, flags=0)

Load an image from the source this instance represents.
Parameters:
fif - FreeImage file type
           (type=int)
Returns:
bitmap
           (type=int)

ReadProc(self, buffer, size, count)

Dummy read proc. Indicate error.

save(self, fif, bitmap, flags=0)

Save an image to the destination this instance represents.
Parameters:
fif - FreeImage file type
           (type=int)
bitmap - Bitmap
           (type=int)
Returns:
True if it's all ok
           (type=int)

SeekProc(self, offset, origin)

Dummy seek proc. Indicate error.

TellProc(self)

Dummy tell proc. Indicate error.

WriteProc(self, buffer, size, count)

Dummy write proc. Indicate error.

Generated by Epydoc 2.1 on Fri Nov 17 12:52:34 2006 http://epydoc.sf.net