Trait HandleGet

Source
pub trait HandleGet {
    // Required method
    fn get(&self, values: &[f64], no_data_values: Option<&[f64]>) -> [u8; 4];
}
Expand description

Get a RGBA colour given a raw pixel value

Required Methods§

Source

fn get(&self, values: &[f64], no_data_values: Option<&[f64]>) -> [u8; 4]

Get a RGBA colour given a raw pixel value.

The length of values might vary, usually 1 or 3, depending on the ColourDefinition contained within Composite.

⚠ This will probably change once we enforce the length using the type system ⚠

Implementors§