Module transform

Source
Expand description

Image transformations, ie: scale, crop, resize, etc.,

Enums§

SamplingFilter

Functions§

compress
Compression
crop
Crop an image.
fliph
Flip an image horizontally.
flipv
Flip an image vertically.
padding_bottom
Apply padding on the left side of the PhotonImage A padded PhotonImage is returned.
padding_left
Apply padding on the left side of the PhotonImage A padded PhotonImage is returned.
padding_right
Apply padding on the left side of the PhotonImage A padded PhotonImage is returned.
padding_top
Apply padding on the left side of the PhotonImage A padded PhotonImage is returned.
padding_uniform
Apply uniform padding around the PhotonImage A padded PhotonImage is returned.
resample
Resample the PhotonImage.
resize
Resize an image.
rotate
Rotate the PhotonImage on an arbitrary angle A rotated PhotonImage is returned.
seam_carve
Resize image using seam carver. Resize only if new dimensions are smaller, than original image.
shearx
Shear the image along the X axis. A sheared PhotonImage is returned.
sheary
Shear the image along the Y axis. A sheared PhotonImage is returned.