/**
    Return the image data as a vector of 8-bit RGB color triples, scaled
    down by a factor of `scale_factor` (a value of 1 will produce a
    fill-sized image).

    This is the data format that most external things like.
    */
Return the image data as a vector of 8-bit RGB color triples, scaled
down by a factor of `scale_factor` (a value of 1 will produce a
fill-sized image).

This is the data format that most external things like.
Return the image data as a vector of 8 - bit RGB color triples scaled down by a factor of ` scale_factor ` ( a value of 1 will produce a fill - sized image ) . This is the data format that most external things like .
pub fn to_rgb8(&self, scale_factor: usize) -> (usize, usize, Vec<u8>) {
        if scale_factor < 2 {
            (
                self.dims.xpix,
                self.dims.ypix,
                self.to_rgb8_full_resolution(),
            )
        } else if scale_factor > MAX_SCALE_FACTOR {
            self.to_rgb8_scaled(MAX_SCALE_FACTOR)
        } else {
            self.to_rgb8_scaled(scale_factor)
        }
    }
pub fn to_rgb8 ( & self , scale_factor : usize ) -> ( usize , usize , Vec < u8 > ) { if scale_factor < 2 { ( self . dims . xpix , self . dims . ypix , self . to_rgb8_full_resolution ( ) , ) } else if scale_factor > MAX_SCALE_FACTOR { self . to_rgb8_scaled ( MAX_SCALE_FACTOR ) } else { self . to_rgb8_scaled ( scale_factor ) } }
Return the image data as a vector of 8-bit RGB color triples, scaled
down by a factor of `scale_factor` (a value of 1 will produce a
fill-sized image).
Return the image data as a vector of 8 - bit RGB color triples scaled down by a factor of ` scale_factor ` ( a value of 1 will produce a fill - sized image ) .
&self
scale_factor
usize