Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: nitacku on January 28, 2007, 11:51:00 am

Title: Manipulating Pictures
Post by: nitacku on January 28, 2007, 11:51:00 am
How do you extract pictures from an app created with BasicBuilder and Archive them into the calcs memory?

xLIB uses the pics that are stored in the calcs memory.
BasicBuilder creates an app with the pics compressed into the it.

It is quite a process to get the pics to the memory (a process I wish was far easier)
I have only come up with one way so far.

The method:
c1-->
CODE
ec1For(X,1,19
If X=1
Then
RecallPic A
real(9,1,200+X
real(9,0,200+X
Archive /whatever the name is/
End
If X=2
Then
etc...

End
c2
ec2
This code only gets run once when the user firsts starts the Bowling program.

If anyone can come up with a way easier than this (I'm sure there must be), I will hail them as the calc god.
Title: Manipulating Pictures
Post by: Jon on January 28, 2007, 01:05:00 pm
if it's accessing a basicbuilder app, then it would definitely need to be something in ASM where you have intimate control of the flash ROM.  I dont know how the data structures of basicbuilder apps works, so you would have to talk to Martin Warmer about that.  If you find that out, i could definitely write you a lib to retreive pics :)smile.gif
Title: Manipulating Pictures
Post by: DJ Omnimaga on January 28, 2007, 01:33:00 pm
i dont think it is possible with BasicBuilder, but I thought there was an option allowing to have the pics separate from the BB app? If there is one, you will need to separate them from the app, else I dunno what could help besides what jon said :(sad.gif
Title: Manipulating Pictures
Post by: nitacku on January 28, 2007, 01:43:00 pm
Well it is not really accessing it directly from the app.
What happens first in the program is a RecallPic A-S. Then I use the xLIB storepic command real(9,0,201-218) to store each of the pics into the calcs memory.
After the pic is stored, I have to Archive it as well, otherwise I will run out of memory.

This is the process I am using on all 18 pictures.
It is slow and takes up way too much memory.
Does anyone know of a better way?
Title: Manipulating Pictures
Post by: DJ Omnimaga on January 28, 2007, 01:48:00 pm
yeah that can also trigger lot of garbage collect messages. I would replace all recallpic A-S commands with xlib recall pic command, and use the devpic program to make the pic 11 to 18 (hacked pics), so you can recall them fine. in BB if you use xlib you shouldn't be supposed to have to change the pic numbers to letters, like you have to do with recallpic. If you do so, then you can let all pics archived, and you run them directly from archive using xlib recallpic command
Title: Manipulating Pictures
Post by: nitacku on January 28, 2007, 04:33:00 pm
You can't use the xLIB recallpic command unless the pics are in the calc's memory, not the app. Otherwise nothing will be displayed.
Title: Manipulating Pictures
Post by: Jon on January 28, 2007, 05:16:00 pm
All those are definitely options, however, the fastest way (not to bash basic or anything) would be to swap out each flash page, until you find the app, then retreive the picdata.







:psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif [WHOOOOOOO 50TH POST!!!!!!!!] :psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif:psychedelic:happy0075.gif
Title: Manipulating Pictures
Post by: DJ Omnimaga on January 29, 2007, 02:50:00 am
QuoteBegin-nitacku+28 Jan, 2007, 22:33-->
QUOTE (nitacku @ 28 Jan, 2007, 22:33)
You can't use the xLIB recallpic command unless the pics are in the calc's memory, not the app. Otherwise nothing will be displayed.  

 mhmm I didnt knew that, sry x.x

@jon that would be a goood idea