home *** CD-ROM | disk | FTP | other *** search
-
- DUAmodInfo:
- introductory documentation for DrawUtilsA module V1.10 (21 Aug 95)
- ------------------------------------------------------------------
-
- This module provides a number of SWI calls concerned with the pre-processing
- and display of drawfiles. The module can render all of the object types
- currently used by Draw (including text area objects), and also sprite
- objects containing the new 'deep-colour' (32 thousand & 16 million colour)
- sprites introduced with RISC OS 3.5.
-
- Since the Acorn DrawFile module is now widely available, you might ask what
- are the differences between that module and the DrawUtilsA module.
-
- The DrawUtilsA module provides facilities such as drawfile verification and
- unknown font handling which make it more useful in a general purpose viewer
- (one that displays drawfiles from diverse sources). The module has been
- tested with drawfiles produced using applications such as Draw, DrawPlus,
- ArcDraw, Vector, ArtWorks and FireWorkz (and various lesser known ones);
- some of these introduce slight variations in the file format which do not
- trouble Draw but which may cause problems with the DrawFile module. One
- obvious difference seen with some applications which export drawfiles (e.g.
- ArtWorks) is that they do not set the object bounding boxes correctly, which
- would affect file rendering with the DrawFile module. To render the file
- correctly, you would need to set the bounding boxes by loading the file into
- Draw and then saving it or by writing your own code to do the necessary
- calculations (the DrawUtilsA module provides a call - DF_SetBBoxes - to do
- just this).
-
- The DrawUtilsA module also does a better (if slightly slower) job of
- rendering text area objects. For example, the order in which escape sequences
- appear in the text can have unexpected effects on the vertical text spacing
- (line and paragraph breaks). The DrawUtilsA module makes allowance for such
- peculiarities and will (almost) always render the object in the same way as
- Draw. With the DrawFile module you may find that the text is formatted
- somewhat differently (although this might be avoidable if you are careful
- about the order of the escape sequences - see the module documentation).
-
- In summary,if you are writing an application which generates and needs to
- display drawfiles, both modules provide all the necessary rendering
- facilities (and the DrawFile module will save about 20K of RMA space).
- However, if your application needs to display drawfiles from external
- sources the DrawUtilsA module may be more suitable.
-
- See the second documentation file ('DUAmodSWIs') for details of the module
- SWI calls.
-
- My thanks to Acorn for allocating the SWI chunk name prefix and number
- ('DF_' and &4B0C0).
-
-
-
- History
- -------
- V1.02 (21 Apr 95): First release.
-
- V1.10 (21 Aug 95): Module now supports independent horizontal & vertical
- scaling and rotation of image. Module size reduced to 50K. Minor bug in
- sprite rendering corrected.
-
-
- Copyright Notice: The DrawUtilsA module and the accompanying documentation
- files ('DUAmodInfo' and 'DUAmodSWIs') are copyright © of the author (James
- McQueen) 1995.
-
- This software is supplied "as is"; no warranty of any kind concerning the
- merchantability of this software or its fitness for any particular purpose
- is given. In no circumstances shall the author or any provider or
- distributor of this software be liable for any damage, loss of profits, or
- any indirect or consequential loss arising out of the use of this software
- or inability to use this software.
-
- You are free to give this software to anyone you wish via any medium
- including electronic bulletin board or public domain (PD) library providing
- it is delivered with both documentation files unaltered. You may not sell
- this software, except that PD libraries may make a nominal charge to cover
- magnetic media and postage. The module may also be distributed as a
- functional part of a larger application with or without its documentation
- files providing that authorship of the module is acknowledged in any
- documentation accompanying that application.
-
-
- Comments concerning this software to:
- James McQueen
- 9/2 15 Croftbank Street
- Springburn
- Glasgow
- G21 4LP
-