Function openslide::utils::decode_buffer

source ·
pub fn decode_buffer<T: Unsigned + Integer + ToPrimitive + Debug + Display + Clone + Copy>(
    buffer: &Vec<u32>,
    height: T,
    width: T,
    word_representation: WordRepresentation
) -> Result<RgbaImage, Error>
Expand description

This function takes a buffer, as the one obtained from openslide::read_region, and decodes into an Rgba image buffer.