home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
d
/
draw2spr
/
!Draw2Spr
/
!Help
next >
Wrap
Text File
|
1995-04-25
|
5KB
|
115 lines
This is Draw to Sprite, an application to convert draw files to bitmaps. (As the name suggests.)
LEGAL NOTICE
===== ======
!Draw2Sprite (hereafter the 'program') is © Iain F. McLaren. The program may not be modified
without written permission. No liability can be accepted for any loss or damage arising from
the use or misuse of this program.
The program is SHAREWARE and may be freely distributed for evaluation purposes. A registration
fee of 5 (five) pounds sterling must be paid if you wish to keep the program for more than one
month. Registration entitles the user to free updates as they become available upon receipt, by
me, of a disc.
Public Domain libraries may include the (unregistered) software as part of their service.
Registered versions may not be distributed.
Using the Program
===== === =======
Load the application by double-clicking its icon in the directory display. For users with just
a floppy drive the program disc may have to be accessed while converting, so keep it handy.
The icon bar menu has the following items:
Info Standard info window
Sprite Sprite property window - see later
Processing Processing window - see later
Reprocess Reprocess the current image
Quit Terminates the program
To load a draw file, simply drag the required file to the icon bar icon or to the output window.
Once the draw file is loaded it is rendered using the current settings.
The sprite settings window will be different for users of RISC OS 3.1x and 3.50.
In the former case the sprite options are:
Sprite Width
Sprite Height
Sprite Mode
So, for example to create a 16 colour sprite choose mode 12 or 20, for a 256 colour one choose
15 or 21.
The palette 'radio' buttons beside the sprite property group determine the colours for the
output sprite.
For RiscOS 3.50 (or greater) users, the sprite options are similar to those found in !Paint's
(version 1.84) create sprite window. It is possible to choose the xdpi and ydpi for the sprite
as well as render to a 32000 or 16M colour sprite. xdpi and ydpi values of 90 correspond to
vga resolution. See your user guide for further details.
For all users:
The options in the 'Processing' dialogue box determin how the file is to be rendered.
Automatic scaling means the draw file is stretched or shrunk to fil the given sprite.
If this is not selected it is possible to enter the scaling in the writable icons below.
If desired, the values can be incremented and decremented by the arrows beside them.
1:1 aspect, when selected, ensures the file is rendered 'square'. If this is not selected
the file fill be stretched in both directions to fit. This means that circles may be rendered
as ellipses.
If 'Use dithered colours' is selected the computer will dither the colour available to match
them as closely as possible to those in the draw file. Note that this makes no difference in
16M colour modes!
The palette definitions are stored in a sub-directory as 1x1 sprites with the appropriate
palette. This enables the user to tailor the palettes to his/her needs. Load the file into
!Paint and alter the palette entries to your requirements.
To save the rendered image, click 'Menu' over the output window. The first menu item's submenu
is the standard save dialogue box. Drag the spritefile icon to where you want to save the file
or type in the filename and click 'ok'.
The other menu items in this menu are functionally identical to those in the iconbar menu.
Known Problems
===== ========
There are a few of known problems, but it's getting close to my finals and I don't want to
be worried by them at the moment.
1) 2, 4, or 16 colour sprites aren't displayed properly if they have no palette. Select 'mono'
or colour palette in the sprite dialogue box to get around this.
2) The hourglass tends to increment in large jumps, giving the impression that not much is
happening. Just give it a chance - it's probably just rendering a sprite.
3) The path buffer for the draw file has a maximum of 20Kb. This is sufficient for most
files, but some, noteably graphs, may be too complicated to render.
4) Text areas are not supported. This isa bit complicated so it may never get done. However,
all other text is (rotated/stretched etc).
5) Could be faster...
Please report any bugs to me at the address below. In particular whether the menus widths are
OK. Risc OS 3.5 sizes them for you, so I can't check. Grrrr. I've left the !RunImage file
un-squeezed so you can see how it works (if you really want), something which I wish more
people would do. (Not mentioning authors of SampleCD at all...)
If you have a drawfile which does not convert correctly please send me a copy and I'll see
what I can do about it.
Iain F. McLaren e-mail phyifm@caledonia.hw.ac.uk
Wardlaw House (until June '95)
Kirkhill
Inverness-shire
IV5 7PB