home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 4
/
AUCD4.iso
/
art_design
/
imaging
/
bmp_sprite
/
!BMPSprite
/
!Help
< prev
next >
Wrap
Text File
|
1996-05-14
|
4KB
|
111 lines
BMPSprite 1.03 (14 May 1996)
—————————
Written by Darren Salt
Based on (evolved from) FromBMP and ToBMP by David Thomas for Acorn Computing
Purpose
———————
BMP is the format mainly used for graphical interchange in the Microsoft
Windows (ie. inferior :-] ) environment for PC-compatible machines. Since
many RISC OS users also use PCs on a regular basis, it's handy to be able to
convert between BMP and the native formats on RISC OS (Sprite and Clear).
The BMPSprite application will convert BMP format pictures to Sprites, or
Clear files if the BMP image is 8 or 24 bit colour, and back again.
When BMPSprite is run, or the Filer sees it, the 'BMP' and 'Clear' file icons
are loaded; also, if you have RISC OS 3, the DOS file extension '.BMP' will
be mapped to the BMP filetype.
BMPSprite can convert files much faster than ChangeFSI; however, it is not,
and is not intended to be, anywhere near as flexible.
Usage
—————
• Converting from BMP
Drag the source file, which must be of type 'BMP' (&69C) to the BMPSprite
icon on the icon bar. The file will be accessed to determine the number of
colours in the image and an appropriate save box will appear. When you save,
the image will be converted from BMP and written out.
The saved file will be in either Sprite or Clear format. Use the icons below
the filename icon to select the file format (the file icon will change
appropriately).
- If Sprite is selected:
The sprite is given the file's leafname as its name.
If the input file was 8 bit colour, the resulting sprite will be in the
RISC OS 3 256-entry format (using mode 28). If you want a standard palette
version, then you should process the image using Translator or ChangeFSI,
although this will result in loss of colour resolution.
If the input file was 16 or 24 bit colour, the resulting sprite will only
be displayable on a Risc PC, or by using software specially written to cope
with the new format. Again you can put the image through Translator or
ChangeFSI to turn it into a sprite displayable on all machines.
- If Clear is selected:
This will only work for images with 8 or 24 bit colour. Other images can
only be saved as sprites - if this is the case, the radio icons will be
greyed out and the icon displayed will be that of a sprite file.
The image is labelled as 'created by BMPSpri 1.03'. If it is 8bpp, then the
file includes a palette.
• Converting to BMP
Drag the source file, which must be of type 'Sprite' (&FF9) or 'Clear' (&690)
to the BMPSprite icon on the icon bar. If the file is valid (see the next
paragraph), a save box will appear. When you save, the image will be
converted and the BMP file written out. If you want to transfer it to a PC,
you should (if possible) save it on a DOS-format disk, ensuring that it has
the '/BMP' extension (which will, of course, appear on a PC as '.BMP').
The BMP format only supports 1, 4, 8, 16 or 24 bit colour files, so the input
files accepted are any RISC OS sprite except for the four colour modes (eg.
mode 8 or mode 26), or any Clear file with 8 or 24 bit colour. The pixel size
is ignored, so mode 12 sprites (for example) will end up half height.
In all cases, if the image has a palette, it is retained. Old-format
256-colour palettes (16 entries) are expanded to the full 256 entries; this
*may* cause problems with non-standard palettes.
Credits
———————
One of the reasons why David Thomas wrote the original converters was that
Translator and ChangeFSI (up to at least v0.90) have problems when reading
certain BMPs, as they incorrectly calculated the word-aligned line lengths.
It isn't as if they're word-aligned or anything...!
Changes
———————
1.02 (17/01/96):
Slight speed improvements; memory allocation bug fix.
1.03 (05/02/96):
Added new-format sprite support. Also options for output type when
converting 8 or 24 bpp images from BMP - to sprite or Clear.
Contact
———————
arcsalt@spuddy.mew.co.uk
darren.salt@unn.ac.uk (until July 1996)