Struct squish::Params[][src]

pub struct Params {
    pub algorithm: Algorithm,
    pub weights: ColourWeights,
    pub weigh_colour_by_alpha: bool,
}

Fields

The compression algorithm to be used

Weigh the relative importance of each colour channel when fitting (defaults to perceptual weights)

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Params
[src]

impl Default for Params
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Params

impl Sync for Params