Add import support for Qlie tiled PNG image (.png)

This commit is contained in:
2026-01-31 16:36:49 +08:00
parent 3c424a28c0
commit 7f8d1daf9d
13 changed files with 202 additions and 16 deletions

View File

@@ -67,6 +67,7 @@ impl ScriptBuilder for BgiCBGBuilder {
fn create_image_file<'a>(
&'a self,
data: ImageData,
_filename: &str,
mut writer: Box<dyn WriteSeek + 'a>,
_options: &ExtraConfig,
) -> Result<()> {
@@ -200,6 +201,7 @@ impl Script for BgiCBG {
fn import_image<'a>(
&'a self,
data: ImageData,
_filename: &str,
mut file: Box<dyn WriteSeek + 'a>,
) -> Result<()> {
let encoder = CbgEncoder::new(data)?;

View File

@@ -85,6 +85,7 @@ impl ScriptBuilder for BgiImageBuilder {
fn create_image_file<'a>(
&'a self,
data: ImageData,
_filename: &str,
writer: Box<dyn WriteSeek + 'a>,
options: &ExtraConfig,
) -> Result<()> {
@@ -257,7 +258,12 @@ impl Script for BgiImage {
})
}
fn import_image<'a>(&'a self, data: ImageData, file: Box<dyn WriteSeek + 'a>) -> Result<()> {
fn import_image<'a>(
&'a self,
data: ImageData,
_filename: &str,
file: Box<dyn WriteSeek + 'a>,
) -> Result<()> {
create_image(
data,
file,