Obtain all required vectors; Quick draft for project

This commit is contained in:
2025-03-18 21:54:25 +01:00
parent 6a1b87cdb1
commit 602fb3a5c2
7 changed files with 45 additions and 12 deletions

View File

@@ -5,6 +5,7 @@ use slint::{Rgba8Pixel, SharedPixelBuffer};
use tool_helper::Error;
use types::Encoding;
#[derive(Clone)]
pub struct TIMInfo {
_path: PathBuf,
image_data: SharedPixelBuffer<Rgba8Pixel>,
@@ -119,6 +120,7 @@ impl TIMInfo {
}
}
#[derive(Clone)]
struct PaletteInfo {
data: Vec<Rgba8Pixel>,
width: u32,