pub type RgbaSurface<'a> = Surface<'a, 4>;Aliased Type§
pub struct RgbaSurface<'a> {
pub data: &'a [u8],
pub width: u32,
pub height: u32,
pub stride: u32,
}Fields§
§data: &'a [u8]The pixel data for the image.
The data does not need to be tightly packed, but if it isn’t, stride must be different from width * 4.
Expected to be at least stride * height.
width: u32The width of the image in texels.
height: u32The height of the image in texels.
stride: u32The stride between the rows of the image, in bytes.
If data is tightly packed, this is expected to be width * 4.