Image Converter

Libraries, utilities, bootloaders...

Image Converter

Postby ripper121 » Wed May 21, 2014 3:42 pm

Converts BMP files to PROGMEM (the Gamebuino Image Format)
Supports 3 Colors (You can define it in the Converter)

2014-05-22_1416[1].png
2014-05-22_1416[1].png (50.95 KiB) Viewed 14518 times


Video: Open

Download:
Source (C#)
EXE File
Last edited by ripper121 on Tue May 27, 2014 1:39 pm, edited 1 time in total.
User avatar
ripper121
 
Posts: 224
Joined: Fri Apr 04, 2014 2:02 pm
Location: Germany

Re: Image Converter

Postby ripper121 » Thu May 22, 2014 12:19 pm

Update!
User avatar
ripper121
 
Posts: 224
Joined: Fri Apr 04, 2014 2:02 pm
Location: Germany

Re: Image Converter

Postby erico » Thu May 22, 2014 1:34 pm

Hey Ripper121, that looks nice!
User avatar
erico
 
Posts: 671
Joined: Thu Mar 27, 2014 9:29 pm
Location: Brazil

Re: Image Converter

Postby ripper121 » Thu May 22, 2014 1:57 pm

Thank you hope it help someone to convert all Buinomos xD
User avatar
ripper121
 
Posts: 224
Joined: Fri Apr 04, 2014 2:02 pm
Location: Germany

Re: Image Converter

Postby DFX2KX » Thu May 22, 2014 8:44 pm

Now that I've got basic functionality working on the emulator, I'll have to give this thing a try.
DFX2KX
 
Posts: 250
Joined: Mon Apr 14, 2014 3:48 am

Re: Image Converter

Postby ripper121 » Fri May 23, 2014 8:21 am

Works fine with the emulator for me ;)
User avatar
ripper121
 
Posts: 224
Joined: Fri Apr 04, 2014 2:02 pm
Location: Germany

Re: Image Converter

Postby DFX2KX » Fri May 23, 2014 5:45 pm

ripper121 wrote:Works fine with the emulator for me ;)

I figure it would, good to know for sure. though! it also seems like it'll make as big a sprite as you want... Does the Gamebuino actually let you do that? O_o
DFX2KX
 
Posts: 250
Joined: Mon Apr 14, 2014 3:48 am

Re: Image Converter

Postby ripper121 » Fri May 23, 2014 6:56 pm

No only max 84x48 Pixel ;)
User avatar
ripper121
 
Posts: 224
Joined: Fri Apr 04, 2014 2:02 pm
Location: Germany

Re: Image Converter

Postby DFX2KX » Fri May 23, 2014 9:54 pm

ripper121 wrote:No only max 84x48 Pixel ;)


Ah, thanks for the clarification. It seems to be a bit picky on what colors it converts with (it doesn't like to use white in the bitmap for me, easy fix, but was confusing at first) So I suppose things like levels and tilesets would be made of more then one actual sprite?
DFX2KX
 
Posts: 250
Joined: Mon Apr 14, 2014 3:48 am

Re: Image Converter

Postby ripper121 » Sat May 24, 2014 2:00 am

you can generate a Map with sprites.
You use an 2D array of byte for map config

byte myMap[10][6] = {
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0},
};

now you can for every byte (in this map every 0) creat 255 Sprites

So you loop trouth the myMap and Draw the Sprits every 8 Pixel in x and y with,
gb.display.drawBitmap(x, y, bitmap);
User avatar
ripper121
 
Posts: 224
Joined: Fri Apr 04, 2014 2:02 pm
Location: Germany

Next

Return to Software Development

Who is online

Users browsing this forum: No registered users and 55 guests

cron