pixels: Extend Image to allow for multiple frames (#36058)

Signed-off-by: rayguo17 <rayguo17@gmail.com>
This commit is contained in:
TIN TUN AUNG 2025-03-21 18:32:14 +08:00 committed by GitHub
parent 584b37a1f3
commit ec20d9a3d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 119 additions and 28 deletions

View file

@ -292,7 +292,7 @@ impl CanvasState {
let image_size = Size2D::new(img.width, img.height);
let image_data = match img.format {
PixelFormat::BGRA8 => img.bytes.clone(),
PixelFormat::BGRA8 => img.bytes(),
pixel_format => unimplemented!("unsupported pixel format ({:?})", pixel_format),
};