home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / viewers / cinema10 / cinema.doc < prev    next >
Text File  |  1990-07-05  |  13KB  |  348 lines

  1. CINEMA 1.0
  2. __________________________________________________________________
  3.  
  4. If you like this program, please do one of the following:
  5.  
  6.     Go down to your local bookstore and buy a copy of "Coven: 
  7.     A Novel", by Steven William Rimmer, published by Ballantine 
  8.     Books. In Canada, try Coles... they usually have it. Read the 
  9.     book and tell your friends about it if you like it. Send us 
  10.     some comments about the book or a photocopy of the cover and 
  11.     we'll consider you a registered user of this program.
  12.  
  13.     If your local bookstore doesn't have Coven, ask them to order 
  14.     it for you.
  15.  
  16.     Alternately, send us $35.00, the normal user fee for this 
  17.     software. (The book is $3.95 or $5.50 in Canada: considerably 
  18.     cheaper than cash.) 
  19.  
  20.     Registered users of this software are entitled to phone 
  21.     support, notification of upgrades and good karma. When you 
  22.     register Cinema we'll send you a copy of the latest version 
  23.     of the software, as well as several other graphic related 
  24.     programs we do. Please tell us the version number of your 
  25.     copy of Cinema when you register. Our address can be found at 
  26.     the end of this file.
  27. __________________________________________________________________
  28.  
  29.  
  30. Cinema is a slide show program for image files. It allows you to 
  31. set up complex sequences of images by creating script files in a 
  32. very simple programming language. Having created such a script 
  33. file, you can feed it to Cinema and it will show you some 
  34. pictures
  35.  
  36. You can use any combination of the following image file types in 
  37. a Cinema program.
  38.  
  39. - MacPaint files
  40. - PC Paintbrush files with up to 256 colours
  41. - GEM/IMG files of the sort used by Ventura Publisher
  42. - GIF files of any size and up to 256 colours
  43. - TIFF files (with some restrictions)
  44. - WordPerfect graphic (WPG) files.
  45. - Microsoft Windows Paint (MSP) files.
  46. - IFF/LBM/CE files (from Deluxe Paint, among others)
  47.  
  48. Cinema can be used with any display card and monitor, as one of 
  49. the things you must do in a Cinema program is to tell it what 
  50. sort of screen driver to use. A number of screen drivers for the 
  51. popular display cards have been included with Cinema.
  52.  
  53. The file CINEDRVR.DOC outlines the available drivers.
  54.  
  55. A Cinema program must begin be opening a driver. You should then 
  56. specify the time you want each picture to appear on the screen. 
  57. Having done this, you can create a sequence of images. Each image 
  58. will display and while it's on the screen the following image 
  59. will load and wait for its turn. When the first image has been on 
  60. for the time you set, it will be replaced with the second image.
  61.  
  62. The programming language of Cinema... if you want to stretch a 
  63. point and call it that... allows you to create complex Cinema 
  64. programs by looping and calling subroutines. 
  65.  
  66. This is a sample Cinema program. Note that all the image files in 
  67. this program exist in the indicated subdirectories on our hard 
  68. drive... you would change them to reflect the files you have and 
  69. where you have them stored.
  70.  
  71. ____[ PROGRAM START ]_____________________________________________
  72.  
  73.  
  74. Rem This is an example Cinema program 
  75.  
  76. Rem We'll start by loading a graphics driver
  77. OpenDriver GrafDrv.Drv
  78.  
  79. Rem Next we'll define how long the pictures will stay on the screen
  80. SetWait 3
  81.  
  82. Rem This tells CINEMA to jump to the next picture if a key is hit
  83. SetKeybreak ON
  84.  
  85. Rem This is a label, the start of the main infinite loop
  86. :myLoop
  87.  
  88.     REM This is a WHILE statement, and sets the start of a loop
  89.     while 4
  90.         REM This is a call to a subroutine
  91.         Call mySubroutine
  92.  
  93.         while 3
  94.             REM This actually loads an image
  95.             OpenImage bodefrag.pcx
  96.             OpenImage zoe.pcx
  97.  
  98.         REM This is a WEND, the end of a loop
  99.         wend
  100.         OpenImage frogg.pcx
  101.         Call mySubroutine
  102.     wend
  103.  
  104.     OpenImage nagel2.Img
  105. GoTo myLoop
  106. Quit
  107.  
  108. :mySubroutine
  109.     REM Start of my subroutine
  110.     OpenImage e:\gif\mouse.gif
  111.     OpenImage e:\gif\parrot.gif
  112.     Call mySecondSubroutine
  113.     Return
  114.  
  115. :mySecondSubroutine
  116.     REM Start of my second subroutine
  117.     OpenImage d:\gemart\kelly.img
  118.     Call myThirdSubroutine
  119.     OpenImage d:\gemart\cheetah.img
  120.     Return
  121.  
  122. :myThirdSubroutine
  123.     REM Start of my third subroutine
  124.     while 2
  125.         OpenImage e:\gif\pigs.gif
  126.         OpenImage d:\gemart\hkGirl.Img
  127.     wend
  128.     Return
  129.  
  130. ____[ END OF PROGRAM ]__________________________________________
  131.  
  132. A Cinema program can be written with any text editor or a word 
  133. processor in its non-document mode. Each line can be up to 128 
  134. characters long, and a Cinema program can contain up to 32,767 
  135. lines.
  136.  
  137. You can indent lines to make your listings easier to read, but 
  138. Cinema ignore all indenting. Cinema also ignores blank lines.
  139.  
  140. Non-blank lines in a Cinema program can either be commands or 
  141. labels. A label always starts with a semicolon. Labels can be up 
  142. to 128 characters long.
  143.  
  144. Cinema commands and labels are all case insensitive. It doesn't 
  145. matter what mixture of upper and lower case you use.
  146.  
  147. You can break out of a Cinema program by holding down the Ctrl 
  148. key and hitting Break several times.
  149.  
  150. The following commands are recognized by Cinema. Some commands 
  151. have arguments, that is, parameters after the command itself.
  152.  
  153. REM        Remark. The rest of the line is ignored.
  154.  
  155. QUIT        Return to text mode and exit Cinema.
  156.     
  157. OPENDRIVER     Load the specified graphics driver. The argument 
  158.                 must be the complete path and name of a valid 
  159.                 Alchemy graphics driver.
  160.  
  161. CLOSEDRIVER    Unload the current graphics driver and return 
  162.                 immediately to text mode. Normally you would not 
  163.                 do this in a Cinema program as it looks messy. 
  164.                 This command is useful if you wish to change 
  165.                 drivers in the middle of a program.
  166.  
  167. OPENIMAGE    Load an image into memory and tell Cinema to 
  168.                 display it as soon as the current image times out 
  169.                 or is interrupted. The argument must be the 
  170.                 complete path and name of any image file of a 
  171.                 type supported by Cinema.
  172.  
  173. SETWAIT        Set the number of seconds to leave each picture 
  174.                 on the screen. The argument must be a number 
  175.                 between zero and 32,767. If you make this value 
  176.                 very small the pictures will essentially load up 
  177.                 and change as fast as they can be read from the 
  178.                 disk.
  179.  
  180. SETKEYBREAK    Set a flag to determine whether pressing a key 
  181.                 while an image is on the screen will cause it 
  182.                 immediately be replaced by the next image in the 
  183.                 program. The argument for this command must be 
  184.                 either ON or OFF.
  185.  
  186. GOTO        Stop executing the program with the current line 
  187.                 and resume executing it one line after the label 
  188.                 specified by the argument to this command. The 
  189.                 argument must be the name of a label in your 
  190.                 program. Make sure you do not include the label's 
  191.                 colon in the argument to a GOTO command.
  192.  
  193. WHILE        Starts an iterative loop. The argument must be a 
  194.                 number between zero and 32,767 representing the 
  195.                 number of times you want the commands inside the 
  196.                 loop to execute before Cinema goes on to whatever 
  197.                 comes after the loop. WHILE loops are terminated 
  198.                 by WEND commands. You can nest WHILE loops. Note 
  199.                 that the maximum number of nested WHILE loops and 
  200.                 currently pending subroutine CALLs cannot exceed 
  201.                 128.
  202.  
  203. WEND        Ends an iterative loop.
  204.  
  205. CALL        Calls a subroutine. A Cinema subroutine can 
  206.                 contain any legal Cinema commands, including 
  207.                 WHILE loops and CALLs to further subroutines. A 
  208.                 subroutine must end with the command RETURN, 
  209.                 which will cause the current Cinema program to 
  210.                 resume execution at the line just after the one 
  211.                 which contained the CALL.
  212.  
  213. RETURN        Ends a subroutine.
  214.  
  215.  
  216. In using WHILE WEND loops and subroutines, pay attention that you 
  217. do not inadvertently use the GOTO command to break out of loops 
  218. or sneak past the RETURN ending your subroutine. Executing such 
  219. code multiple times will cause Cinema's internal stack to 
  220. overflow in time, returning you unceremoniously to DOS.
  221.  
  222. Cinema deals with most errors by returning you to DOS with a beg 
  223. notice and an error message.
  224.  
  225. Once you have a Cinema program file written, you can run it by 
  226. simply passing a path to it to CINEMA.EXE. If you wanted to run 
  227. the program CINEMA.CIN, you would type the following at the DOS 
  228. prompt.
  229.  
  230. CINEMA CINEMA.CIN
  231.  
  232. By convention, Cinema program files are given the extension .CIN, 
  233. but CINEMA.EXE doesn't actually care what you call them.
  234.  
  235. Note that Cinema figures out what sort of image files you're 
  236. passing it by looking at the file extensions. This is what it 
  237. expects to see.
  238.  
  239. MAC: MacPaint files
  240. IMG: GEM/IMG files
  241. PCX: PC Paintbrush files
  242. GIF: GIF files
  243. TIF: TIFF files
  244. WPG: WordPerfect graphic files
  245. MSP: Microsoft Windows Paint files.
  246. LBM: IFF files
  247.  
  248.  
  249. COMING NEXT VERSION
  250. ___________________
  251.  
  252. The next version of Cinema will include an installer to allow you 
  253. to change the default file extensions to suit your requirements. 
  254. It will also have a selection of special effects to add to your 
  255. slide shows.
  256.  
  257.  
  258. ROLL YOUR OWN
  259. _____________
  260.  
  261. This is yet another book plug. If you're interested in writing 
  262. programs which use graphics, you'll find everything you need to 
  263. know in "The Book of Bitmapped Graphics", also by Steven William 
  264. Rimmer. It's published by TAB books, (TAB book 3558) and should 
  265. be available in August 1990. It features code to pack and unpack 
  266. MacPaint, IMG, PCX, GIF and TIFF files, as well as chapters on 
  267. screen drivers, dithering and printing.
  268.  
  269.  
  270. MORAL DOGMA
  271. ___________
  272.  
  273. If you like this program and find it useful, you are requested to 
  274. support it either by buying the book mentioned at the top of this 
  275. file or by sending us $35.00. We'd rather you bought the book. 
  276. This will entitle you to telephone support, notification of 
  277. updates, a free copy of the latest version of Cinema and other 
  278. good things like that. More to the point, though, it'll make you 
  279. feel good. We've not infested the program with excessive beg 
  280. notices, crippled it or had it verbally insult you after ten 
  281. days. We trust you to support Cinema if you like it.
  282.     Oh yes, should you fail to support this program and 
  283. continue to use it, a leather winged demon of the night will tear 
  284. itself, shrieking blood and fury, from the endless caverns of the 
  285. nether world, hurl itself into the darkness with a thirst for 
  286. blood on its slavering fangs and search the very threads of time 
  287. for the throbbing of your heartbeat. Just thought you'd want to 
  288. know that.
  289.  
  290. We are
  291.                       Alchemy Mindworks Inc.
  292.                           P.O. Box 500
  293.                         Beeton, Ontario
  294.                              L0G 1A0            
  295.                              Canada
  296.  
  297. Other programs we've done that you might like include:
  298.  
  299. GRAPHIC
  300.  WORKSHOP - This is the last word in image programs. It converts, 
  301.             prints, views, dithers, transforms, scales and 
  302.             halftones MacPaint, GEM/Ventura IMG, PCX, GIF, TIFF, 
  303.             WPG, MSP, IFF/LBM and EPS files. It drives CGA, 
  304.             Hercules, EGA, VGA, Paradise, Video 7, Trident and 
  305.             ATI VGA Wonder cards. It features batch processing, 
  306.             extended and expanded memory support, an intuitive 
  307.             user interface and easy to follow menus. It allows 
  308.             you to convert colour image files into superb black 
  309.             and white clip art for desktop publishing, among 
  310.             other things. 
  311.  
  312. VFM      -  Ventura soft font manager deluxe with a side of fries. 
  313.             Adds new fonts and creates width tables with menu 
  314.             driven simplicity.
  315.  
  316. GRAFCAT  -  Prints a visual catalog of your image files, with 
  317.             sixteen pictures to a page. Drives all LaserJet and 
  318.             PostScript laser printers, and works with any mixture 
  319.             of GIF, PCX, MacPaint, TIFF, WPG, MSP, IFF/LBM, EPS 
  320.         and IMG files.
  321.  
  322. CROPGIF   - allows you to crop smaller fragments out of your GIF 
  323.             files. Use graphic Workshop, above, to convert other 
  324.             formats into GIF files for cropping. This program 
  325.             uses a simple mouse interface to make cropping image 
  326.             fragments no more complicated than using a paint 
  327.             program. Requires a Microsoft compatible mouse.
  328.  
  329. If you can't find them in the public domain, they're available 
  330. from us for $35.00 each. 
  331.     
  332.  
  333. LEGAL DOGMA
  334. ___________
  335.  
  336. The author assumes no responsibility for any damage or loss 
  337. caused by the use of these programs, however it comes down. If 
  338. you can think of a way a picture program can cause you damage 
  339. or loss you've a sneakier mind than mine.
  340.  
  341. All the trademarks used herein are registered to whoever it is 
  342. that owns them. This notification is given in lieu of any 
  343. specific list of trademarks and their owners, which would not be 
  344. as inclusive and would probably take a lot longer to type. 
  345.  
  346. That's it...
  347.  
  348.