round

class actions.round.Action(**options)

Bases: core.models.Action

Rounded or crossed corners

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, cache={}, round_all=True, rounding_type=None, radius=100, opacity=255, pos=('Rounded', 'Rounded', 'Rounded', 'Rounded'), back_color='#FFFFFF')
values(info)
actions.round.create_corner(radius=100, opacity=255, factor=2)
actions.round.create_rounded_rectangle(size=(600, 400), cache={}, radius=100, opacity=255, pos=('Rounded', 'Rounded', 'Rounded', 'Rounded'))
actions.round.init()
actions.round.round_image(image, cache={}, round_all=True, rounding_type=None, radius=100, opacity=255, pos=('Rounded', 'Rounded', 'Rounded', 'Rounded'), back_color='#FFFFFF')

Previous topic

rotate

Next topic

saturation