convert .hex to .jpg

hi guys

im working on bitmap images for gamebuino. Using their library I can make a bitmap image like this..............

//imports the SPI library (needed to communicate with Gamebuino's screen)
#include <SPI.h>
//imports the Gamebuino library
#include <Gamebuino.h>
//creates a Gamebuino object named gb
Gamebuino gb;

const byte PROGMEM turtle_rock[] =
{
  16,16,
  B00011110,B00000000,
  B00101001,B10000000,
  B01010000,B11111000,
  B01010000,B10101100,
  B10010000,B10100110,
  B10000001,B01000011,
  B10000001,B01010011,
  B10000001,B01010011,
  B01000001,B01010011,
  B01000001,B01011011,
  B01000001,B00001011,
  B10000001,B00000101,
  B10000000,B00000101,
  B10000000,B11101100,
  B01000001,B00111111,
  B11111111,B11111000,
  
  };

                                     // the setup routine runs once when Gamebuino starts up
void setup(){
                                    // initialize the Gamebuino object
  gb.begin();
                                  
  
}

                                   // the loop routine runs over and over again forever
void loop(){
                                   //updates the gamebuino (the display, the sound, the auto backlight... everything)
                                   //returns true when it's time to render a new frame (20 times/second)
  if(gb.update()){
                                   
    gb.display.drawBitmap(10,10,turtle_rock);

                                  
  }
}

In order to be able to use it for making a sprite (game image) I need to be able to convert it too.jpg.

When the compiled the code above exports a .hex file so I think I need some kind of converterbut to be honest im comepletely lost as to what to do with it

Heres a link to the library reference for gamebuino.....

http://gamebuino.com/wiki/index.php?title=Reference

You won't be able to create a JPG image using an ATMega-based Arduino as the converter code is too large. Use a Linux or Windows based PC.

The link you posted does not contain any reference to a "game image" or the need for JPG encoded files. Why do you think you need to do that?

its a reference for the gamebuino library. If you click on a command say like gb.drawBitmap it takes you to a page describing that command

they are doing it somehow

Duhjoker:
its a reference for the gamebuino library. If you click on a command say like gb.drawBitmap it takes you to a page describing that command

they are doing it somehow

I guess you mean "gb.display.drawBitmap". That's the only bitmap function listed in the reference you linked.
The reference says:-

Used to display a bitmap that is a byte array onto the screen.

It makes no mention of a jpg file. It clearly says "bitmap".

I didn't immediately see a reference to sprites on that page, either. Perhaps you could provide a direct link to that?

Sorry there's not much that I can find to go on. This is a new product and there's really not much information yet was hoping maybe you guys help.

The code above is the only reference I have for drawing a bit map which will become a Sprite. I pulled that off a YouTube video.

The people at Gamebuino are telling me save theirs as .jpg then convert it to png.

jremington:
You won't be able to create a JPG image using an ATMega-based Arduino as the converter code is too large. Use a Linux or Windows based PC.

The link you posted does not contain any reference to a "game image" or the need for JPG encoded files. Why do you think you need to do that?

Most Arduinos are quite capable of doing JPEG encoding - it's really pretty simple, once you know how it works. But, it still doesn't make sense, especially for an application like the one being discussed here. If the binary image can be put into a simple, standard form (GIF, BMP, etc.) MSPaint can be used to do the conversion.

That said, I cannot believe JPEG is the ultimate format to be used for sprites - it would make no sense at all. FAR more likely it's a simple bitmap, like a BMP.

Regards,
Ray L.

Most Arduinos are quite capable of doing JPEG encoding - it's really pretty simple, once you know how it works.

Agreed, JPEG encoding is not particularly complicated, but can you post a link to Arduino code for the purpose? The open source linux code is far too large.

OK so they have a forum but nobody seems to be on till after 3 Am us CST time. Here's a link to that thread where I'm asking them. Maybe I'm missing or not understanding something.

http://gamebuino.com/forum/viewtopic.php?f=8&t=3440&p=11611#p11611

Also using Windows PC

jremington:
Agreed, JPEG encoding is not particularly complicated, but can you post a link to Arduino code for the purpose? The open source linux code is far too large.

Here is one:

Arduino BMP and JPEG

I'm sure there are others out there. There is certainly tons of c code that could be easily ported. I wrote plenty myself back when I was designing digital cameras...

Regards,
Ray L.