# [−][src]Module image::imageops

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

colorops | Functions for altering and converting the color of pixelbufs

## Enums

FilterType | Available Sampling Filters

## Functions

blur | Performs a Gaussian blur on the supplied image. `sigma` is a measure of how much to blur by.
crop | Return a mutable view into an image
filter3x3 | Perform a 3x3 box filter on the supplied image. `kernel` is an array of the filter weights of length 9.
flip_horizontal | Flip an image horizontally
flip_vertical | Flip an image vertically
overlay | Overlay an image at a given coordinate (x, y)
overlay_bounds | Calculate the region that can be copied from top to bottom.
replace | Replace the contents of an image at a given coordinate (x, y)
resize | Resize the supplied image to the specified dimensions. `nwidth` and `nheight` are the new dimensions. `filter` is the sampling filter to use.
rotate90 | Rotate an image 90 degrees clockwise.
rotate180 | Rotate an image 180 degrees clockwise.
rotate270 | Rotate an image 270 degrees clockwise.
thumbnail | Resize the supplied image to the specific dimensions.
unsharpen | 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

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)