ImageMask(width=-1,height=-1, polygons=[], url=None, style=None)

Example

from mirmod.controls import ImageMask
import json
@wob.receiver("value","image", control=ImageMask(style=json.dumps({"point_color": "#f01010", "line_color": "#e21010"})),hidden=True,connectable=False)
def receive_value(self, value):
  self.value = value

Parameters

NameTypeDescription
widthintThe width of the image.
heightintThe height of the image.
polygonsListA list of python objects { polygons : { x:float, y:float }, labels: [] }. All coordinates are in normalised image space
styleObject{ point_colot, line_color }