Module Spyder :: Class RGBImage
[hide private]
[frames] | no frames]

Class RGBImage

source code

object --+    
         |    
      File --+
             |
            RGBImage

Spyder-generated class

module image

file /home/sjoerd/Spyder-devel/image/image.spy

Wiki

http://www.spyderware.nl/wiki/classes/RGBImage

Validate block

>>>            
assert file.data().length() > 0
assert file.convert(RGBData) != None               
>>>
Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

    Inherited from File
 
__construct__(self, *args, **kargs)
Private general constructor, for internal use only
source code
 
__copy__(self, file0)
Private copy constructor, for internal use only
source code
 
__init__(self, *args, **kargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__print__(self, spaces, mode)
Print handle for Spyder classes that embed File, for internal use only
source code
 
__repr__(self, spaces=0)
Triggers on repr(self) Returns a parsable string representation and saves the current object
source code
 
__str__(self, spaces=0)
Triggers on str(self) and on print self Returns a string representation This representation can be parsed with Spyder.core.parse
source code
 
__unpack__(self, s)
Private value/keyword/list constructor, for internal use only
source code
 
__validate__(self)
<empty>
source code
 
cast(self, newformat)
Operates on the underlying <data>, not on the current object The underlying <data> is cast to "newformat"
source code
 
close(self)
Unloads <data> from memory...
source code
 
constructor_fromany(self, *args, **kargs)
Public general constructor,...
source code
 
convert(self, newformat)
Operates on the underlying <data>, not on the current object The underlying <data> is converted to "newformat"
source code
 
data(self)
Returns <data>
source code
 
delete(self)
Erases <name> from disk
source code
 
dict(self)
Returns a Python dict representation of the current object
source code
 
fileformat(self)
Returns <fileformat>, the original format of <data>
source code
 
format(self)
Returns <format>, the current format of <data>
source code
 
is_temporary(self)
Query if the "temporary" flag was set
source code
 
length(self)
Returns the length of <data>
source code
 
reload(self) source code
 
save(self)
If <mode> is "Write", saves <data> to disk...
source code
 
temporary(self, flag)
Set a "temporary" flag as signal for applications indicating that <data> should reside in memory, not on disk, and that <name> can be safely deleted
source code
 
tofile(self, filename) source code
 
totempfile(self) source code
 
validate(self)
<empty>
source code
Class Methods [hide private]
    Inherited from File
 
fromfile(c, filename, fastparse=False) source code
Static Methods [hide private]
    Inherited from File
 
typename() source code
Class Variables [hide private]
    Inherited from File
  __constructor__ = "constructor_fromany"
Properties [hide private]

Inherited from object: __class__