Expand description
Helper functions for converting between various formats
Functionsยง
- dyn_
image_ from_ raw - Convert a PhotonImage to a DynamicImage type (struct used by the
image
crate) - get_
pixels - Get raw pixels (as a vec of u8s) from a DynamicImage
- open_
dyn_ image - save_
dyn_ image - Save a DynamicImage to a path.
- square_
distance - Gets the square distance between two colours