Thanks to visit codestin.com
Credit goes to docs.rs

load_image_native

Function load_image_native 

Source
pub fn load_image_native<T>(filename: String) -> Array<T>
Expand description

Load Image into Array in it’s native type

This load image function allows you to load images as U8, U16 or F32 depending on the type of input image as shown by the table below.

Bits per Color (Gray/RGB/RGBA Bits Per Pixel)Array TypeRange
8 ( 8/24/32 BPP)u80 - 255
16 (16/48/64 BPP)u160 - 65535
32 (32/96/128 BPP)f320 - 1

§Parameters

  • filename is name of file to be loaded

§Return Arrays

An Array with pixel values loaded from the image