mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 12:02:08 +00:00
Implement slicing input image
This commit is contained in:
1
test/gfx/crop.flags
Normal file
1
test/gfx/crop.flags
Normal file
@@ -0,0 +1 @@
|
||||
-L 2,1:1,1
|
||||
BIN
test/gfx/crop.png
Normal file
BIN
test/gfx/crop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 671 B |
@@ -404,7 +404,7 @@ int main(int argc, char **argv) {
|
||||
char path[] = "../../rgbgfx", reverse_opt[] = "-r", out_opt[] = "-o",
|
||||
out_file[] = "result.2bpp", pal_opt[] = "-p", pal_file[] = "result.pal",
|
||||
attr_opt[] = "-a", attr_file[] = "result.attrmap", in_file[] = "result.png";
|
||||
auto width_string = std::to_string(image0.getWidth());
|
||||
auto width_string = std::to_string(image0.getWidth() / 8);
|
||||
std::vector<char *> args = {
|
||||
path, reverse_opt, width_string.data(), out_opt, out_file, pal_opt,
|
||||
pal_file, attr_opt, attr_file, in_file};
|
||||
|
||||
Reference in New Issue
Block a user