GLBasic forum

Main forum => Off Topic => Topic started by: dreamerman on 2011-May-26

Title: Another Sprite Tool - but it's mine :] for custom fonts, and image processing...
Post by: dreamerman on 2011-May-26
Hi,
I needed some simple app to change transparent color on sprites and prepare font file, but I have some problems with ImageMagic and I don't know Gimp or other graphic editor scripts so I decided to make my own program. :]
And here it is, it basic function are: auto-cropping images, changing selected base color into final requested color, searching for sprites on image (returning their rect/positions) - and possibility to create glBasic ready to use bitmap font from selected file - there is an attached sample font bitmap made in Gimp.. (for it use rect spacing x=6, y=20)
More info and instructions, examples of code in glB are also included.
:]

It's win32 bin, but should work also on wine in Linux..

[attachment deleted by admin]
Title: Re: Another Sprite Tool - but it's mine :] for custom fonts, and image processing...
Post by: MrTAToad on 2011-May-26
I notice that the resulting font file isn't quite correct - the first few characters are duplicated.
Title: Re: Another Sprite Tool - but it's mine :] for custom fonts, and image processing...
Post by: dreamerman on 2011-May-28
For this included font You need to set 'max space between merged rects (X Y)' to 6 (X - first textbox) and 20 (for second)...
Also 'base color' must be set to rgb(0,0,0) - black, because bitmap have such background.