pub(crate) fn raw_size(&self, w: u32, h: u32) -> usize {
        /*will not overflow for any color type if roughly w * h < 268435455*/
        let bpp = self.bpp() as usize;
        let n = w as usize * h as usize;
        ((n / 8) * bpp) + ((n & 7) * bpp + 7) / 8
    }
/// Returns the byte size of a raw image buffer with given width, height and color mode
Returns the byte size of a raw image buffer with given width, height and color mode
Returns the byte size of a raw image buffer with given width height and color mode
pub(crate) fn raw_size(&self, w: u32, h: u32) -> usize {
        /*will not overflow for any color type if roughly w * h < 268435455*/
        let bpp = self.bpp() as usize;
        let n = w as usize * h as usize;
        ((n / 8) * bpp) + ((n & 7) * bpp + 7) / 8
    }
pub ( crate ) fn raw_size ( & self , w : u32 , h : u32 ) -> usize { /*will not overflow for any color type if roughly w * h < 268435455*/ let bpp = self . bpp ( ) as usize ; let n = w as usize * h as usize ; ( ( n / 8 ) * bpp ) + ( ( n & 7 ) * bpp + 7 ) / 8 }
Returns the byte size of a raw image buffer with given width, height and color mode
Returns the byte size of a raw image buffer with given width height and color mode
&self
w
u32
h
u32