Enum openslide::utils::WordRepresentation
source · pub enum WordRepresentation {
BigEndian,
LittleEndian,
}
Expand description
The different ways the u8 color values are encoded into a u32 value.
A successfull reading from OpenSlide’s read_region()
will result in a buffer of u32
with
height * width
elements, where height
and width
is the shape (in pixels) of the read
region. This u32
value consist of four u8
values which are the red, green, blue, and alpha
value of a certain pixel. This enum determines in which order to arange these channels within
one element.
Variants§
BigEndian
From most significant bit to least significant bit: [alpha, red, green, blue]
LittleEndian
From most significant bit to least significant bit: [blue, green, red, alpha]
Trait Implementations§
source§impl Clone for WordRepresentation
impl Clone for WordRepresentation
source§fn clone(&self) -> WordRepresentation
fn clone(&self) -> WordRepresentation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more