Skip to main content

to_rgba_bitmap

Function to_rgba_bitmap 

Source
pub fn to_rgba_bitmap(
    image: Image,
    transparent: bool,
    threads: Option<&ThreadPool>,
) -> Image<[u8; 4]>
Expand description

Converts a DistancePixel image into an RGBA bitmap

Filled pixels are [255u8; 4]; empty pixels are [0u8; 4] (i.e. transparent) if transparent is set or [0, 0, 0, 255] otherwise.