pub fn trans_image (&self, image_selection: Image, cod: &str, a: f32, b: i32) -> Vec<Color> {
        let width = image_selection.width() as u32;
        let height = image_selection.height() as u32;
        //get image data in form of [Color] slice
        let image_data = image_selection.into_data();
        //apply transformation to slice
        self.trans_from_slice(&image_data,width,height,cod,a,b)
        //here only return new_slice instead of render because of borrowing issue 
    }
/// apply some transformation to an image 
apply some transformation to an image
apply some transformation to an image
pub fn trans_image (&self, image_selection: Image, cod: &str, a: f32, b: i32) -> Vec<Color> {
        let width = image_selection.width() as u32;
        let height = image_selection.height() as u32;
        //get image data in form of [Color] slice
        let image_data = image_selection.into_data();
        //apply transformation to slice
        self.trans_from_slice(&image_data,width,height,cod,a,b)
        //here only return new_slice instead of render because of borrowing issue 
    }
pub fn trans_image ( & self , image_selection : Image , cod : & str , a : f32 , b : i32 ) -> Vec < Color > { let width = image_selection . width ( ) as u32 ; let height = image_selection . height ( ) as u32 ; //get image data in form of [Color] slice let image_data = image_selection . into_data ( ) ; //apply transformation to slice self . trans_from_slice ( & image_data , width , height , cod , a , b ) //here only return new_slice instead of render because of borrowing issue  }
apply some transformation to an image
apply some transformation to an image
&self
image_selection
Image
cod
&str
a
f32
b
i32
&self
image_selection
Image
cod
&str
a
f32
b
i32