class documentation

class IImage(IObject, Protocol): (source)

Known subclasses: gws.lib.image.Image

View In Hierarchy

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

Inherited from IObject:

Method props Undocumented
Class Variable permissions Undocumented
def add_box(self, color=None) -> IImage: (source)
overridden in gws.lib.image.Image

Undocumented

def add_text(self, text: str, x=0, y=0, color=None) -> IImage: (source)
overridden in gws.lib.image.Image

Undocumented

def compose(self, other: IImage, opacity=1) -> IImage: (source)
overridden in gws.lib.image.Image

Undocumented

def crop(self, box) -> IImage: (source)
overridden in gws.lib.image.Image

Undocumented

def paste(self, other: IImage, where=None) -> IImage: (source)
overridden in gws.lib.image.Image

Undocumented

def resize(self, size: Size, **kwargs) -> IImage: (source)
overridden in gws.lib.image.Image

Undocumented

def rotate(self, angle: int, **kwargs) -> IImage: (source)
overridden in gws.lib.image.Image

Undocumented

def size(self) -> Size: (source)
overridden in gws.lib.image.Image

Undocumented

def to_bytes(self, mime: Optional[str] = None) -> bytes: (source)
overridden in gws.lib.image.Image

Undocumented

def to_path(self, path: str, mime: Optional[str] = None) -> str: (source)
overridden in gws.lib.image.Image

Undocumented