[−][src]Function twobpp::twobpp
pub fn twobpp<T: Unsigned + ToPrimitive + Copy + Debug>(
pixels: Vec<T>
) -> Result<Vec<u8>, &'static str>
Converts an array of unsigned integers and converts them to 2bpp format. Expects a 64 element 1D array packed as [x*8+y] 2bpp pixels only support the values 0 through 3.