background — Phatch v0.2 documentation

### Navigation

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

# background

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

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

  Put color under transparent image

  `get_relevant_field_labels`()

    If this method is present, Phatch will only show relevant fields.

    Returns: | list of the field labels which are relevant
    Return type: | list of strings

    Note

    It is very important that the list of labels has EXACTLY the same order as defined in the interface method.

  static `init`()
  `interface`(fields)
  static `pil`(image, fill, mark, color, horizontal_offset=None, vertical_offset=None, horizontal_justification=None, vertical_justification=None, orientation=None, method=None, opacity=100)

`actions.background.` `background`(image, fill, mark, color, horizontal_offset=None, vertical_offset=None, horizontal_justification=None, vertical_justification=None, orientation=None, method=None, opacity=100)

`actions.background.` `init`()

### Navigation

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