// Translate the color values directly to 8-bit RGB.
//
// This method is equivalent to calling `.to_rgb8_scaled(1)`, but requires
// a lot less calculation because we're not going through the song and
// dance of "averaging" squares of 1 by 1 pixels.
Translate the color values directly to 8-bit RGB.
This method is equivalent to calling `.to_rgb8_scaled(1)`, but requires
a lot less calculation because we're not going through the song and
dance of "averaging" squares of 1 by 1 pixels.
Translate the color values directly to 8 - bit RGB . This method is equivalent to calling ` . to_rgb8_scaled ( 1 ) ` but requires a lot less calculation because we ' re not going through the song and dance of " averaging " squares of 1 by 1 pixels .
fn to_rgb8_full_resolution(&self) -> Vec<u8> {
        let n_pix = self.dims.xpix * self.dims.ypix;
        let mut rgb8_data: Vec<u8> = Vec::with_capacity(n_pix * 3);
        for p in self.data.iter() {
            for b in p.to_rgb8().iter() {
                rgb8_data.push(*b);
            }
        }
        rgb8_data
    }
fn to_rgb8_full_resolution ( & self ) -> Vec < u8 > { let n_pix = self . dims . xpix * self . dims . ypix ; let mut rgb8_data : Vec < u8 > = Vec :: with_capacity ( n_pix * 3 ) ; for p in self . data . iter ( ) { for b in p . to_rgb8 ( ) . iter ( ) { rgb8_data . push ( * b ) ; } } rgb8_data }
Translate the color values directly to 8-bit RGB.
Translate the color values directly to 8 - bit RGB .
&self