class documentation

class Image(gws.IImage): (source)

Constructor: Image(img)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method add_box Undocumented
Method add_text Undocumented
Method compose Undocumented
Method crop Undocumented
Method paste Undocumented
Method resize Undocumented
Method rotate Undocumented
Method size Undocumented
Method to_bytes Undocumented
Method to_path Undocumented
Instance Variable img Undocumented

Inherited from IObject (via IImage):

Method props Undocumented
Class Variable permissions Undocumented
def __init__(self, img: PIL.Image.Image): (source)

Undocumented

def add_box(self, color=None): (source)

Undocumented

def add_text(self, text, x=0, y=0, color=None): (source)

Undocumented

def compose(self, other, opacity=1): (source)

Undocumented

def crop(self, box): (source)

Undocumented

def paste(self, other, where=None): (source)

Undocumented

def resize(self, size, **kwargs) -> Image: (source)

Undocumented

def rotate(self, angle, **kwargs): (source)

Undocumented

def size(self) -> gws.Size: (source)

Undocumented

def to_bytes(self, mime=None): (source)

Undocumented

def to_path(self, path, mime=None): (source)

Undocumented

img: PIL.Image.Image = (source)

Undocumented