⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

nearest_neighbor_scale

Function nearest_neighbor_scale 

Source
pub fn nearest_neighbor_scale(
    src: &Image,
    dst_width: usize,
    dst_height: usize,
) -> Vec<u32>
Expand description

Scale an image to dst_width x dst_height using nearest-neighbor sampling.

Returns a new pixel buffer.