#45525 - JonnyBean - Sat Jun 11, 2005 4:33 pm
Hi, I want to make a DS rom out of family pictures. I'm not good at programming, but I get the idea of it. I want both screens to display pictures. And maybe later on I want to make a slideshow if possible. My question is: how do I do this? I hope someone can answer my question. To be more precisely: I think you need to use a converter, and then place the code in the rom, am I right about that? Also can someone maybe show me an example of the source coude and the rom? I thank you for your time.
Jonny Bean
#45537 - Kyoji - Sat Jun 11, 2005 8:52 pm
Just use the GBA jpg viewer, it works incredibly well and while it doesnt support both screens, its infinetly easier than writing your own code..
http://www.caimans.net/gba/
#45539 - JonnyBean - Sat Jun 11, 2005 8:57 pm
Yes I know about that, but I really want it badly with the DS cos of the both screen usage... Thanx anyways! :)
#45543 - Mr Snowflake - Sat Jun 11, 2005 9:48 pm
Personally, I think the most easy sollution is to convert the pictures to a picture with the resolution of the ds. And then make a c array out of it, and use some basic dma instructions to put them on the screen.
#45555 - JonnyBean - Sat Jun 11, 2005 11:40 pm
As I said, I was kinda noobish when it comes to programming. So if I may ask: how do I make a c array of the pictures? And if I have it, how do I put it in the code with the DMA instructions..
#45576 - crossraleigh - Sun Jun 12, 2005 3:57 am
Try scaling the pictures and converting them to PCX files. This is easy enough with ImageMagick's convert utility:
Code: |
convert picture -geometry 256x192! picture.pcx |
Then, use something like DecodePCX in libgba to draw the pictures. It's made for GBA Mode 4, but 256-color extended rotation backgrounds on the DS are like Mode 4 on the GBA. devkitARM come with an example program called PCXView that may help you get your feet wet.
#45590 - JonnyBean - Sun Jun 12, 2005 11:05 am
Thank you for your help crossraleigh, I managed to get the first part. The pics are now .pcx files and are 256*192 pixels. I downloaded libgba-0.1.0, but i'm kinda confused after that... How do I draw em?