Crate image_merger

Source
Expand description

This crate provides fast functionality for merging many images. It is built on top of the image crate and works to boost performance by utilizing parallel processing and avoiding unnecessary costly operations.

The main type of this crate is the KnownSizeMerger struct, but, more will be added in the future.

Modules§

raw
Unsafe functions and types that are used internally by this crate. These are exposed for advanced users who want to implement their own merger. These functions and types are not guaranteed to be stable.

Structs§

Image
Represents an image that can be passed to the merger. This is a wrapper around an image crate’s GenericImage and adds some additional functionality for the merger.
ImageBuffer
Generic image buffer
KnownSizeMerger
A known size merger that allows you to paste images onto a canvas. This merger is useful when you already know the size of all the images being pushed onto the canvas. This merger has multiple implementations, one for any container type and one for Vec specifically.
Luma
Grayscale colors.
LumaA
Grayscale colors + alpha channel
Point
Represents a point on any canvas.
Rgb
RGB colors.
Rgba
RGB colors + alpha channel

Traits§

FromWithFormat
A trait that allows the creation of an Image from a container of bytes using a specified image format.
Merger
The Merger trait that all mergers must implement. This trait allows the merger to paste images to a canvas.
Pixel
A generalized pixel.

Type Aliases§

BufferedImage
A convenience type alias for an Image with a given pixel type. This simplifies the type signature of most Image declarations. This type alias assumes you are using a Vec as the underlying image buffer.
Padding
Represents the padding between images on a canvas.