Package mapnik :: Module _mapnik :: Class Image

Class Image

 object --+    
          |    
??.instance --+
              |
             Image

This class represents a 32 bit RGBA image.

Instance Methods
 
__init__(...)
__init__( (object)arg1, (int)arg2, (int)arg3) -> None :
 
__reduce__(...)
helper for pickle
 
blend(...)
blend( (Image)arg1, (int)arg2, (int)arg3, (Image)arg4, (float)arg5) -> None :
 
height(...)
height( (Image)arg1) -> int :
 
save(...)
save( (Image)arg1, (str)arg2 [, (str)arg3]) -> None :
 
tostring(...)
tostring( (Image)arg1) -> object :
 
view(...)
view( (Image)arg1, (int)arg2, (int)arg3, (int)arg4, (int)arg5) -> ImageView :
 
width(...)
width( (Image)arg1) -> int :

Inherited from unreachable.instance: __new__

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

Static Methods
 
from_cairo(...)
from_cairo( (object)arg1) -> Image :
 
open(...)
open( (str)arg1) -> Image :
Class Variables
  __instance_size__ = 16
Properties
  background
The background color of the image.

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

__init__( (object)arg1, (int)arg2, (int)arg3) -> None :

    C++ signature :
        void __init__(_object*,int,int)

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

blend(...)

 

blend( (Image)arg1, (int)arg2, (int)arg3, (Image)arg4, (float)arg5) -> None :

    C++ signature :
        void blend(mapnik::Image32 {lvalue},unsigned int,unsigned int,mapnik::Image32,float)

from_cairo(...)
Static Method

 

from_cairo( (object)arg1) -> Image :

    C++ signature :
        boost::shared_ptr<mapnik::Image32> from_cairo(PycairoSurface*)

height(...)

 

height( (Image)arg1) -> int :

    C++ signature :
        unsigned int height(mapnik::Image32 {lvalue})

open(...)
Static Method

 

open( (str)arg1) -> Image :

    C++ signature :
        boost::shared_ptr<mapnik::Image32> open(std::string)

save(...)

 

save( (Image)arg1, (str)arg2 [, (str)arg3]) -> None :

    C++ signature :
        void save(mapnik::Image32,std::string [,std::string])

tostring(...)

 

tostring( (Image)arg1) -> object :

    C++ signature :
        _object* tostring(mapnik::Image32)

tostring( (Image)arg1, (str)arg2) -> object :

    C++ signature :
        _object* tostring(mapnik::Image32,std::string)

view(...)

 

view( (Image)arg1, (int)arg2, (int)arg3, (int)arg4, (int)arg5) -> ImageView :

    C++ signature :
        mapnik::image_view<mapnik::ImageData<unsigned int> > view(mapnik::Image32 {lvalue},unsigned int,unsigned int,unsigned int,unsigned int)

width(...)

 

width( (Image)arg1) -> int :

    C++ signature :
        unsigned int width(mapnik::Image32 {lvalue})


Property Details

background

The background color of the image.

Get Method:
unreachable(...)
Set Method:
unreachable(...)