Expand description

Image Processing Functions

Re-exports

pub use self::sample::FilterType::CatmullRom;
pub use self::sample::FilterType::Gaussian;
pub use self::sample::FilterType::Lanczos3;
pub use self::sample::FilterType::Nearest;
pub use self::sample::FilterType::Triangle;
pub use self::colorops::brighten;
pub use self::colorops::contrast;
pub use self::colorops::dither;
pub use self::colorops::grayscale;
pub use self::colorops::huerotate;
pub use self::colorops::index_colors;
pub use self::colorops::invert;
pub use self::colorops::BiLevel;
pub use self::colorops::ColorMap;

Modules

Functions for altering and converting the color of pixelbufs

Enums

Available Sampling Filters.

Functions

Performs a Gaussian blur on the supplied image. sigma is a measure of how much to blur by.
Return a mutable view into an image The coordinates set the position of the top left corner of the crop.
Return an immutable view into an image The coordinates set the position of the top left corner of the crop.
Perform a 3x3 box filter on the supplied image. kernel is an array of the filter weights of length 9.
Flip an image horizontally
Flip an image horizontally and put the result into the destination ImageBuffer.
Flip an image horizontally in place.
Flip an image vertically
Flip an image vertically and put the result into the destination ImageBuffer.
Flip an image vertically in place.
Fill the image with a linear horizontal gradient
Overlay an image at a given coordinate (x, y)
Calculate the region that can be copied from top to bottom.
Replace the contents of an image at a given coordinate (x, y)
Resize the supplied image to the specified dimensions. nwidth and nheight are the new dimensions. filter is the sampling filter to use.
Rotate an image 90 degrees clockwise.
Rotate an image 90 degrees clockwise and put the result into the destination ImageBuffer.
Rotate an image 180 degrees clockwise.
Rotate an image 180 degrees clockwise and put the result into the destination ImageBuffer.
Rotate an image 180 degrees clockwise in place.
Rotate an image 270 degrees clockwise.
Rotate an image 270 degrees clockwise and put the result into the destination ImageBuffer.
Resize the supplied image to the specific dimensions.
Tile an image by repeating it multiple times
Performs an unsharpen mask on the supplied image. sigma is the amount to blur the image by. threshold is the threshold for the difference between
Fill the image with a linear vertical gradient