Crate retroimg

Source
Expand description

Retroimg processing library.

Convert images to appear to be displayed on retro IBM hardware. It can also be used to reduce the color depth of existing images for use in DOS game development.

See the various functions in this module (and the submodule color) for more information.

Re-exports§

pub use crate::color::ColorDepth;
pub use crate::color::FixedPalette;

Modules§

color
Color depth manipulation module

Structs§

NonSnafu
SNAFU context selector for the ResolutionError::Non variant
RatioWithoutSideSnafu
SNAFU context selector for the ResolutionError::RatioWithoutSide variant
TooManySnafu
SNAFU context selector for the ResolutionError::TooMany variant

Enums§

ResolutionError
An error returned by resolve_output_resolution.

Functions§

crop
Crop an image to the given borders.
expand
This is just another name for a nearest neighbor resize.
reduce
This is just another name for a cubic resize.
resolve_output_resolution
Identify the intended output resolution based on a combination of the input resolution, the desired output dimensions, and/or the pixel ratio.