Package rdkit :: Package Chem :: Package Draw :: Module cairoCanvas :: Class Canvas
[hide private]
[frames] | no frames]

Class Canvas

source code

object --+
         |
        Canvas

Instance Methods [hide private]
 
__init__(self, image=None, size=None, ctx=None, imageType=None, fileName=None)
Canvas can be used in four modes:...
source code
 
flush(self)
temporary interface, must be splitted to different methods,...
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, image=None, size=None, ctx=None, imageType=None, fileName=None)
(Constructor)

source code 

Canvas can be used in four modes:
1) using the supplied PIL image
2) using the supplied cairo context ctx
3) writing to a file fileName with image type imageType
4) creating a cairo surface and context within the constructor

Overrides: object.__init__

flush(self)

source code 
temporary interface, must be splitted to different methods,
(elif self.imageType == "png":)