I've recently started programming in C for my Casio fx-CG50. I've been trying for a while now but I can't seem to find a way to make the script display images, whether drawings or photographs. I know it can do it, but if anyone could shed any light on the situation, that would be great, thanks Good Idea
When programming in C you have full control of the video RAM (VRAM for short) which is just a giant array of pixels. As long as you write your image data here and call Bdisp_PutDisp_DD(), you'll have whatever image you want on screen.

The process of converting the image to a suitable format that can be copied to the VRAM can of course be automated. I'm not too familiar with the Prizm SDK (I usually use another SDK) but I think this CopySprite function is often used along with SourceCoder ton convert images to the proper format.

Performance-wise this routine is probably not optimal, though for a full-color RGB565 source there's not much you can do to improve on it. If this becomes a concern, try using a palette first as it will lessen the pressure on RAM/ROM input and copy faster. ^^
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement