pub fn from_rgba(width: i32, height: i32, data: Vec<u8>) -> Result<Self, ImageError> {
        let channels = 4i32;
        let bits_per_sample = 8;
        Self::from_raw_data(width, height, data, channels, bits_per_sample, true)
    }
/// Creates an image from a raw vector of bytes with alpha
Creates an image from a raw vector of bytes with alpha
Creates an image from a raw vector of bytes with alpha
pub fn from_rgba(width: i32, height: i32, data: Vec<u8>) -> Result<Self, ImageError> {
        let channels = 4i32;
        let bits_per_sample = 8;
        Self::from_raw_data(width, height, data, channels, bits_per_sample, true)
    }
pub fn from_rgba ( width : i32 , height : i32 , data : Vec < u8 > ) -> Result < Self , ImageError > { let channels = 4i32 ; let bits_per_sample = 8 ; Self :: from_raw_data ( width , height , data , channels , bits_per_sample , true ) }
Creates an image from a raw vector of bytes with alpha
Creates an image from a raw vector of bytes with alpha
width
i32
height
i32
data
Vec<u8>
width
i32
height
i32
data
Vec<u8>