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

Class AttributionImage

source code

  object --+    
           |    
MessageImage --+
               |
              AttributionImage

Image with attribution information.
Instance Methods [hide private]
 
__init__(self, message, format='png', transparent=False, inverse=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
text_box(self, img, draw) source code

Inherited from MessageImage: draw, draw_msg, merge_msg, new_image, text_size

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

Class Variables [hide private]
  font_name = 'DejaVu Sans'
the font name for the text
  font_size = 10
the font size of the text
Properties [hide private]
  font_color
the color of the font as a tuple
  box_color
the color of the box behind the text.

Inherited from MessageImage: font

Inherited from object: __class__

Method Details [hide private]

__init__(self, message, format='png', transparent=False, inverse=False)
(Constructor)

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

text_box(self, img, draw)

source code 
Overrides: MessageImage.text_box

Property Details [hide private]

font_color

the color of the font as a tuple
Get Method:
unreachable.font_color(self)

box_color

the color of the box behind the text. color as a tuple or None
Get Method:
unreachable.box_color(self)