mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-08 05:48:46 +08:00
Add import support for Qlie tiled PNG image (.png)
This commit is contained in:
@@ -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)?;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user