Package mapproxy :: Package core :: Module image :: Class MessageImage
[hide private]
[frames] | no frames]

Class MessageImage

source code

object --+
         |
        MessageImage
Known Subclasses:

Base class for text rendering in images (for watermarks, exception images, etc.)
Instance Methods [hide private]
 
__init__(self, message, format='png')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
text_size(self, draw) source code
 
text_box(self, img, draw) source code
 
new_image(self, size) source code
 
draw(self, img=None, size=None)
Create the message image.
source code
 
merge_msg(self, img, msg_img) source code
 
draw_msg(self, msg_img, draw) source code

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

Instance Variables [hide private]
  font_name = 'DejaVu Sans Mono'
the font name for the text
  font_size = 10
the font size of the text
  font_color = (0, 0, 0)
the color of the font as a tuple
  box_color = None
the color of the box behind the text.
Properties [hide private]
  font

Inherited from object: __class__

Method Details [hide private]

__init__(self, message, format='png')
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

draw(self, img=None, size=None)

source code 
Create the message image. Either draws on top of img or creates a new image with the given size.

Instance Variable Details [hide private]

box_color

the color of the box behind the text. color as a tuple or None
Value:
None

Property Details [hide private]

font

Get Method:
unreachable.font(self)