pub trait Converter { type Data; // Required method fn convert(&self, x: usize, y: usize, data: Self::Data) -> u32; }
Converter from the Data value to 0xff_rr_gg_bb format.
0xff_rr_gg_bb
Data to be converted from.
Convert passed data into 0xff_rr_gg_bb value. x and y values represent pixel position in the surface, not in the target.
x
y