Struct image::hdr::RGBE8Pixel [] [src]

pub struct RGBE8Pixel {
    pub c: [u8; 3],
    pub e: u8,
}

Refer to wikipedia

Fields

Color components

Exponent

Methods

impl RGBE8Pixel
[src]

Converts RGBE8Pixel into Rgb<f32> linearly

Converts RGBE8Pixel into Rgb<T> with scale=1 and gamma=2.2

color_ldr = (color_hdr*scale)gamma

Panic

Panics when T::max_value() cannot be represented as f32.

Converts RGBE8Pixel into Rgb using provided scale and gamma

color_ldr = (color_hdr*scale)gamma

Panic

Panics when T::max_value() cannot be represented as f32. Panics when scale or gamma is NaN

Trait Implementations

impl Eq for RGBE8Pixel
[src]

impl PartialEq for RGBE8Pixel
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for RGBE8Pixel
[src]

Formats the value using the given formatter.

impl Copy for RGBE8Pixel
[src]

impl Clone for RGBE8Pixel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more