Function png::decoder::transform::create_transform_fn

source ยท
pub fn create_transform_fn(
    info: &Info<'_>,
    transform: Transformations,
) -> Result<Box<dyn Fn(&[u8], &mut [u8], &Info<'_>) + Send + Sync>, DecodingError>
Expand description

Returns a transformation function that should be applied to image rows based on 1) decoded image metadata (info) and 2) the transformations requested by the crate client (transform).