Module photon_rs::transform[][src]

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

Enums

SamplingFilter

Functions

__wasm_bindgen_generated_crop

Crop an image.

__wasm_bindgen_generated_fliph

Flip an image horizontally.

__wasm_bindgen_generated_flipv

Flip an image vertically.

__wasm_bindgen_generated_padding_bottom

Apply padding on the left side of the PhotonImage A padded PhotonImage is returned.

__wasm_bindgen_generated_padding_left

Apply padding on the left side of the PhotonImage A padded PhotonImage is returned.

__wasm_bindgen_generated_padding_right

Apply padding on the left side of the PhotonImage A padded PhotonImage is returned.

__wasm_bindgen_generated_padding_top

Apply padding on the left side of the PhotonImage A padded PhotonImage is returned.

__wasm_bindgen_generated_padding_uniform

Apply uniform padding around the PhotonImage A padded PhotonImage is returned.

__wasm_bindgen_generated_resize

Resize an image.

__wasm_bindgen_generated_seam_carve

Resize image using seam carver. Resize only if new dimensions are smaller, than original image.

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.

resize

Resize an image.

seam_carve

Resize image using seam carver. Resize only if new dimensions are smaller, than original image.