Robots w/Lasers

April 5, 2006

Save image to file

Added save support to my drawing test…for now it just saves raw data, and I’ve included a tool which will convert it into a .png file.

Extracting images:

  1. Make sure it says fat…OK at the top of the screen
  2. Draw something
  3. Press ‘B’ — there should be a message at the top telling you it wrote … bytes
  4. Copy ‘img.bin’ to the same directory as ‘proc.exe’
  5. Drag ‘img.bin’ onto ‘proc.exe’…It should create an img.png
  6. Email it to me, or post it in the comments, so I can see!

Latest update

Save to image tested working with: GBAMP, M3-SD

Next update will let you save directly to a .png file (no more need for steps 4 & 5)

UPDATE: Known bug: The red & blue bytes are swapped accidently when converting the img.bin to png. I’m having trouble getting PNG compression to work on DS (some kind of memory error from zlib, which is used by libpng internally), so I may release a fixed version without built in png-saving.

Multiple image saving, and loading as well, would be nice. I’m not sure how far I’ll go with this app, it was originally just a test to see how that drawing algorithm would work on the DS. But it seems to have generated interest, and if this guy doesn’t incorporate comparable drawing functionality, then I will probably see what I can do about making it a more complete app.

Filed under: Draw — davr @ 6:41 pm

5 Comments »

  1. I really like this software! The best part for me is how small the line size gets. It is great for fine details! Here is my first attempt, I call it “Surprised Man”: Luke314pi

    Comment by Luke314pi — April 6, 2006 @ 7:18 am

  2. Hi. Great application!! I have got any ideas for future updates. I was going to try to make a similar program , but you have very much more idea of coding. The two screens of DS is very similar to book and You can take advantage of this:

    http://www.300tons.com/images/224.jpg

    This is my idea, it works in the book position like in the normal one. The Draws can save in numbered series (ej. Pain-1.png, Paint-2.png,…) And you can navegate for this with the “Next/previous Work” buttons

    that it seems to you? I believe that it could be a cool tool

    By, thanks and sorry for my bad english

    Comment by Tostadilla — April 6, 2006 @ 4:39 pm

  3. Hi,

    Tried your program. Drawing works really nicely. However, when saving a raw image and using the proc.exe to convert it, I got some of the colors exchanging their places. Black and green came out correctly but blue and red were vice versa, as well as yellow and cyan (light blue or whatever it’s called). All this on M3SD (amazed by the fact that the saving works at all though :) .

    Comment by melw — April 7, 2006 @ 12:49 am

  4. Here is another one I made in class last night: xman

    Comment by Luke314pi — April 7, 2006 @ 6:42 am

  5. Nice program! The best of all the drawing apps on the DS so far, I love the double precision thing…. looking forward to future versions (multiple saves, please!).

    Here’s a quick one I drew last night, and you can see an example of what melw said – the writing was coloured with red on the DS, but is blue now, and the slight lines behind the guy were cyan on DS, and now yellow.

    Comment by iganokage — April 8, 2006 @ 5:15 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress

Bad Behavior has blocked 2578 access attempts in the last 7 days.




Paid Advertisements
Guitar Lessons - Renegade Motorhome - Costa Rica - British Virgin Islands