text — Phatch v0.2 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- actions »

# text

class `actions.text.` `Action`(**options)

  Bases: `core.models.OffsetMixin`, `core.models.Action`

  Write text at a given position

  `get_relevant_field_labels`()
  static `init`()
  `interface`(fields)
  static `pil`(image, text, horizontal_offset, vertical_offset, horizontal_justification, vertical_justification, size, color='#FFFFFF', orientation=None, font=None)
    Draws text on an image.
  `values`(info, pixel_fields={})

`actions.text.` `draw_text`(image, text, horizontal_offset, vertical_offset, horizontal_justification, vertical_justification, size, color='#FFFFFF', orientation=None, font=None)
  Draws text on an image.

`actions.text.` `init`()

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- actions »