= Now we talk about images !! =
Ok. Let me tell you that it maybe not very easy...It's
easy but you need read this carefully.
I don't include this tutorials in zapi83 functions section
because it isn't a zapi83 application....ops, you are confuse? I will try
explain better to you: I created a program or what you want call, that read
'compressed pics' and package it in a program that you can run (in your
basic programs) it
and display the 'pics' (that are inside the program) in your programs/games.
I hope you understand. But lets start and with the examples you will
understand better.
1. What programs you will need?
2. How to paint the pictures with the programs?
-
I don't tell you how to draw and paint...but I will tell
the things that you need to be in mind when you are going create the
final file.... Let me see...ok...uhhmm All Right - First you need the
the Paint program isn't? I recommend the Paint Shop pro because it
should come with PC magazines and more else... and it's powerful and
easy... I don't recommend the Paint that comes with your windows because
it's very basic...but...rrr don't use them. (It's from Microsoft :)
So...In the Paint Shop pro (PSP) and in the Photo Shop pro (PSP too :),
I when talk in PSP is from two...because they are similarly...but Photo
Shop is more professional..., .... OK ok...SO...in the PSP you need
create a new picture with the following characteristics: 94x63 2 colors
What's that?? This mean that your pic need that the width be equal 94
the height equal 63 and 2 colors depth. The color depth in the Photo
Shop is harder to change go in to the menus Image//Mode//indexed color//
Pallet=uniform Colors=2.
3. Converting the BMP files to ASM files...
-
Open with IStudio your saved BMP file.
-
Now... attention that you need to do this every time
you convert our BMP file: Go to the Image menu//Image mode and
select Monochrome (2 colors)... Look that if you don't do that your final
file will be two or more times big than what it should be...
-
Go File // Export and a rectangle appears...you need
only to select RLE compression but make sure the selected items are
Text file (.asm text format) // Z80 (.db) and the RLE compression.
-
Click in OK button.
-
Save the .asm file where you want.
You can convert next more BMP files...
3. Converting the ASM files to the TI program file...
-
You should now have the Zapic package in your work
directory and all the asm files with the pics.
-
Now run my program, the Zapic.exe , it are asking
you for the number of pics you want pack... type it. If you want one
type 1, logic :)
-
After that it will be ask for the name of the output
file... it's the final name of your program in 83p/8xp format.
-
Now you need type the name of the files that you
convert for example: you want that the file pic1.asm is the first so
type that name for the pic. one.
-
The program will ask you for the name of the files
for wish pic. until the max number of pictures you choose pack (lol)
understand??
-
You should have a file with the name you choose in
the beginning with the extension Z80.
-
Finally you need run the ASM.bat with the command:
ASM (name_of_file) without extension. You can create other file .bat
to do it for you...
4. Run the program in your calculator.
-
Put the program in your calculator.
-
You need for the TI83 the program ZASMLOAD for the 83+
you don't need :)
-
Create a new program called for example: ZCALLPIC and
put that code:
TI83
PROGRAM:ZCALLPIC
:"ProgramName
:Send(9prgmZASMLOAD
:Return
Program name is the name of the program that you send with the pics
for ti83. |
TI83+
PROGRAM:ZCALLPIC
:Asm(ProgramName
:Return |
-
Now when you want for example display the picture one
storage one ~in the the x var and call the program ZCALLPIC
Tutorial Page
|