wrap.Image

class wrap.Image(fileName)

Image class

Examples

Loading image from file:

img = wrap.Image("fileName.jpg")

Filling image with extrapolation:

img.extrapolate(img)

Saving image to file

img.save("fileName.jpg", quality = 100)

Attributes

size (tuple of int, read-only) Size of the image (width,height)

Methods

addPadding(paddingWidth) Add padding to image.
copy() Copy image.
extrapolate() Fill all holes on image with smooth color extrapolation.
fill(color) Fill the image.
hide() Hide image from 2D-viewport.
save(fileName[, quality]) Save image to file.
show() Show image in 2D-viewport.