Tile Extractor

A forum where you can announce your awesome project(s).

Moderator: MaxCoderz Staff

Post Reply
User avatar
driesguldolf
Extreme Poster
Posts: 395
Joined: Thu 17 May, 2007 4:49 pm
Location: $4080
Contact:

Tile Extractor

Post by driesguldolf »

Just a little program I wrote, because I couldn't find any proper tool to extract tiles from an image
LINK
requirements: Windows XP and .NET 2.0 framework
Note: it uses chr(13) & chr(10) for newlines, should it be different?

What it does:
Give it an imagefile, some parameters and it returns the tiles in Z80 source code ($ prefixed hexadecimal numbers)

Features:
  • Extract 8x8 BW tiles
  • Enter offset coordinates (when the tiles aren't in the left upper corner)
  • Specify the number of columns and rows to extract
  • Allows spacing between tiles (when you have a grid)
Will be added if requested:
  • Support for grayscale tiles
  • Any sized tiles
  • Reverse operation
  • Output other then hexadecimal
  • More?
Screenies:
Image

Image
Last edited by driesguldolf on Mon 08 Oct, 2007 12:40 pm, edited 2 times in total.
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: Tile Extractor

Post by benryves »

Looks cool; I'll download it and give it a look tonight. :)
driesguldolf wrote:Note: it uses chr(13) & chr(10) for newlines, should it be different?
There's a predefined constant: Environment.NewLine (see also: Path.DirectorySeparatorChar).
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

What's wrong with \n? (it's practically CR-LF, which is that 13 10 thing)
User avatar
driesguldolf
Extreme Poster
Posts: 395
Joined: Thu 17 May, 2007 4:49 pm
Location: $4080
Contact:

Post by driesguldolf »

King Harold wrote:What's wrong with \n? (it's practically CR-LF, which is that 13 10 thing)
Notepad needs \r\n (which expands to 13*256+10 (but you already know that ;)) for newlines, that's why I don't really like Image Studio (for every picture it lets me change all the □ in enters).
And I've read somewhere that in Linux you use \n but everything else uses \r\n, so I could make it an option
benryves wrote:
driesguldolf wrote:Note: it uses chr(13) & chr(10) for newlines, should it be different?
There's a predefined constant: Environment.NewLine (see also: Path.DirectorySeparatorChar).
Done, thanks
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Just \n has always worked for me..
but anyway, what's wrong with \r\n then?
Post Reply