benbaker76 / Gfx2Next

ZX Spectrum Next graphics conversion tool.
https://www.baker76.com/gfx2next
MIT License
18 stars 6 forks source link

-bitmap-size ignored #22

Open tonywarriner opened 1 month ago

tonywarriner commented 1 month ago

okay, file has 2x2 16x16 pixel sprites

grabbing with: Gfx2Next -bitmap -bitmap-size=16x16 test.bmp

I'd expect all red pixels, then all blue, etc. But i get blue, then red, then blue... to me it looks like the grabber just goes left to right across the entire image, ignoring the size

tony test.bmp.zip

benbaker76 commented 1 month ago

There was definitely a bug but I think you might misunderstand the parameter. From the docs -bitmap-size=XxY Splits up the bitmap output file into X x Y sections

Perhaps you're looking for the -tile-size=XxY?

Anyway I did a commit with the -bitmap-size parameter fix.

tonywarriner commented 1 month ago

Perhaps you're looking for the -tile-size=XxY?

I assumed tile referred to Next tiles, but anyway it makes no difference...

benbaker76 commented 1 month ago

Try

> Gfx2Next.exe -sprites test.bmp
Processing 'test.bmp'...
Sprite Count = 4