home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug131.arc
/
README
< prev
next >
Wrap
Text File
|
1979-12-31
|
9KB
|
166 lines
PREMIUM/STANDARD GRAPHIC FILE CONVERSION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ For Premium Microbees ONLY ]
Frustrated with having a number of graphic drawing programs for my
Premium Microbee and what initially appeared to be total file
incompatability, I set out to overcome some of these problems. I am now
able to draw an opening screen with Electric Paintbrush or Premium
BeeArtistic and convert it to a GRSAVE file (and back again). This way I
can have great graphic screens in any Basic program I wish. Text
Adventures could come alive.
I use eleven programs to do my conversions. They are as follows:-
SHOWBA.COM
~~~~~~~~~~
Will simply load a file created with Premium BeeArtistic Ver 1.3 at the
A> CP/M prompt (or SHELL) and display it on the screen. Press any key to
return you back to CP/M or Shell. Can be run by either:-
A>SHOWBA <cr> - then enter file name
or A>SHOWBA FILENAME <cr>
SHOWGR.COM
~~~~~~~~~~
Will simply load a file saved with GRSAVE command from either Premium or
Standard Basic at the A> CP/M prompt (or SHELL) and dispay it on the
screen. Press any key to return you back to CP/M or Shell. The HIRES2
command needs to have been called at some point in the basic program
prior to using the GRSAVE command and resulting in a Premium GRSAVE file
20k long. Using HIRES results in a Standard GRSAVE file 8k(6k) long. Run
by either:-
A>SHOWGR <cr> - then enter file name and type
or A>SHOWGR FILENAME <cr> and then answer
P or S if Premium or Std. GRSAVE file.
or A>SHOWGR FILENAME t <cr> - where 't' is P or S
BA2GR.MWB
~~~~~~~~~
Will load a file created with Premium BeeArtistic Ver 1.3 while in
Premium Basic Ver 6.28 or higher and create a Premium HIRES2 GRSAVE
file. This file created can then be loaded into any Basic program with:
OPEN"I",6,"filename.ext":GRLOAD 6:CLOSE 6
The extention of the BA file name is replaced with .PGR for a Premium
GRSAVE file and replaced with .SGR for a Standard GRSAVE file. The 8
PCG banks of a BA file are placed horizontally on the screen from the
top to the bottom while GRSAVE files have their 8 PCG banks layed
vertically on the screen from left to right (Compatability??). Will only
work using Basic ver 6.28 or higher on a Premium 'Bee. It also loads
Standard BeeArtistic files and converts them to Standard GRSAVE files.
They can also be loaded into any Basic program using the same line
of code as listed above. Run by:-
A>BASIC BA2GR <cr> and select type and enter filename
GR2BA.COM
~~~~~~~~~
Will load a Premium GRSAVE file and convert it to a Premium BeeArtistic
file. There are a lot of computations and data movement required to
transform a Vertically banked GRSAVE screen to a Horizontally banked BA
screen. That's why its a bit slow. ( I originally wrote it in Basic but
fell asleep waiting for the first file to be converted.) It works well, èhowever, there are a couple of problems with this program. Only the
Graphic component, NOT the Text, will be converted to the BA file. So,
if there is any text in the GRSAVE file then it has to be manually
entered into the converted file by BeeArtistic. Also, another problem is
a GRSAVE file has colour data saved in its file but a BA file does not,
thus all colour data is lost during this conversion. (NOTE: A Standard
GRSAVE file can be simply loaded straight into Standard BeeArtistic and
the program CONVERT.COM on the Premium BA disk converts Standard BA
files to Premium BA files). Run by either:-
A>GR2BA <cr> - then enter filename to load and save.
or A>GR2BA FILENAME <cr> - then enter filename to save.
or A>GR2BA FILE1 FILE2 <cr> - where FILE1 is the filename to load
while FILE2 is the filename to save.
BAGR2EP.MWB
~~~~~~~~~~~
This program will load Premium or Standard BeeArtistic files and Premium
or Standard Basic GRSAVE files (menu selectable) and convert them to a
loadable Electric Paintbrush file. Do not list (or EDIT or RENUMber)
lines 10 or 20 as they contain machine code which turns the screen
crazy! (I seem to do that often!!) Run on a Premium 'Bee with at least
20k in M: drive using Basic Ver 6.28 or higher. After running, it exits
to CP/M and you then save the file created in memory by typing in the
following from CCP (NOT from the Shell!) :-
A>SAVE 76 M:EPTEMP.$$$ <cr>
Then run EP and when the Recover message appears, press any key except
the ESC. The picture then appears. Immediatly save and reload if you
wish to edit it. Run by:
A>BASIC BAGR2EP <cr> - then select type and enter filename
EP2BA.COM
~~~~~~~~~
Thσ actua∞ picturσ oµ ß Electriπ PaintbrusΦ filσ i≤ generall∙ large≥ ì
thaε thσ ful∞ screeε limi⌠ oµ BeeArtistiπ files« Therefore¼ ╔ decideΣ t∩ ì
conver⌠ thσ filσ CLIPBRD.DA╘ t∩ ß Premiuφ B┴ file« LoaΣ E╨ anΣ thσ áfilσ ì
yo⌡ wisΦ t∩ convert« Theε clicδ thσ HAN─ icoε anΣ movσ t∩ thσ árequireΣ ì
par⌠ oµ thσ file« Clicδ thσ CLIPBOAR─ icoε (nex⌠ t∩ HAND⌐ anΣ movσ thσ ì
cros≤ t∩ thσ uppe≥ lef⌠ corne≥ anΣ clicδ t∩ mark« T∩ ge⌠ righ⌠ int∩ áthσ ì
corner¼ usσ FIN┼ modσ (pres≤ Spacσ Bar⌐ iµ usinτ ß ChalkBoard« No≈ ámovσ ì
t∩ bottoφ righ⌠ corne≥ oµ thσ screeε anΣ clicδ t∩ select« Clicδ áEDIT¼ ì
clicδ COP┘ theε exi⌠ E╨ a≤ normal« Thi≤ i≤ thσ larges⌠ picturσ tha⌠ ácaε ì
bσ ásaveΣ áa≤ áCLIPBRD.DA╘ « Afte≥ convertinτ áwitΦ áEP2BA¼ áloaΣ áint∩ ì
BeeArtistiπ anΣ edi⌠ o≥ repositioε iµ required« Ruε b∙ either║-
A>EP2BA <cr> - then enter filename to load (<cr>=CLIPBRD.DAT)
and then filename to save.
or A>EP2BA FILE1 <cr> - then enter file name to save.
or A>EP2BA FILE1 FILE2 <cr> where FILE1 is filename to load
while FILE2 is filename to save.
PM2EP.COM
~~~~~~~~~
For a PRINTMASTER picture to be loaded into Electric Paintbrush, first
select the picture from a SLIB.SHP or ULIB.SHP file using the editing
program EDIT.COM (c) Tripple R and then save it and exit. It will always
be saved on A: drive with the name ULIB.SHP. A: drive must initially NOT
have a file on it called ULIB.SHP as saving will add to that file. We
want a ULIB.SHP with only one picture saved to it. Then run the
PM2EP.COM program and it will produce a file called CLIPBRD.DAT. This
CLIPBRD.DAT file must be on the EP disk. Run EP, click EDIT, click
PASTE, position square and click. It then appears on screen. Save file
as normal. This might all be a bit complicated and only converts one
file at a time, but it works! I have a Chalk Board to run EP and clip èart is saved as CLIPBRD.DAT only. Run by either:-
A>PM2EP <cr> - then enter file name or <cr> for ULIB.SHP
or A>PM2EP FILENAME <cr>
BA216K.COM and 16K2BA.COM
~~~~~~~~~~~~~~~~~~~~~~~~~
On my Electric Paintbrush master disk was a program named LOAD16K.COM
The EP Manual page 7.4 and 7.5 talks about this file and describes a
"16K Format" file but no files were included. I have since found the
opening screen to STORY MAKER is this type of file. (Whow!!) These 2
programs lets me convert these files to Premium BeeArtistic, edit them
and convert them back. (Just what everyone needed.) Run by either:-
A>BA216K <cr> - then enter filename to load
and then filename to save.
or A>BA216K FILENAME <cr> - then enter filename to save
or A>BA216K FILE1 FILE2 <cr> - where FILE1 is the filename
to load while FILE2 is the filename to save.
SHOW16K.COM
~~~~~~~~~~~
This is functionally the same as LOAD16K, but is far easier to use. It
simply shows any "16K Format" file at the A> CP/M prompt (or SHELL).
Press any key to exit. Run by either:-
A>SHOW16K <cr> - then enter filename
or A>SHOW16K FILENAME <cr>
FON2EPF.COM
~~~~~~~~~~~
This file simply converts Graphic Wordbee Fonts to Electric Paintbrush
Fonts. The filename extention is changed to .EPF Run by either:-
A>FON2EPF <cr> - then enter filename
or A>FON2EPF FILENAME <cr>
The eleven files all work well on my 128k Premium 'bee. I have not
tested them on a 256TC but see no problems. Let me know via the MBUG
Bulletin Board if you have problems or questions.
NOTE: None of these programs check the disk to see if a file already
exists with the same name. When a file is created, it will over-write
any pre-existing file of the same name. The original file will then be
un-recoverable. You have been warned!
Alan Laughton - MBUG Member #679 3rd July 1988