Struct squish::Params [−][src]
pub struct Params { pub algorithm: Algorithm, pub weights: ColourWeights, pub weigh_colour_by_alpha: bool, }
Fields
algorithm: Algorithm
The compression algorithm to be used
weights: ColourWeights
Weigh the relative importance of each colour channel when fitting (defaults to perceptual weights)
weigh_colour_by_alpha: bool
Weigh colour by alpha during cluster fit (defaults to false)
This can significantly increase perceived quality for images that are rendered using alpha blending.
Trait Implementations
impl Clone for Params
[src]
impl Clone for Params
fn clone(&self) -> Params
[src]
fn clone(&self) -> Params
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Params
[src]
impl Copy for Params
impl Default for Params
[src]
impl Default for Params