Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199801_2.adf » Regulars2 » StarInfo/Fletcher/Tanner/!Png2Spr/!Help

StarInfo/Fletcher/Tanner/!Png2Spr/!Help

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199801_2.adf » Regulars2
Filename: StarInfo/Fletcher/Tanner/!Png2Spr/!Help
Read OK:
File size: 127D bytes
Load address: 0000
Exec address: 0000
File contents
!PNG2SPR
========

(c) T. R. Tanner
2 Cavendish Court, London Road, Hemel Hempstead, Herts HP3 9FH

email ttehtann@argonet.co.uk


This program allows conversion of graphics in the new "PNG" format to Acorn
sprite files, and vice versa. Note that due to the Acorn sprite formats, the
program converts 16 bit RGB colours to 8 bit RGB colours. Also, transparency is
an on / off mask.

The PNG web pages (specifications & example files) are to be found at
http://www.wco.com/~png/

To convert a PNG file (type B60), double click the file, or drop the file onto
the program icon on the icon bar. To save the file when converted, click the
menu button over the displayed picture, and drag the sprite to where you want
to save it, or type in a path name and click OK.

To convert a sprite to a PNG file, drop the sprite onto the iconbar icon.
Currently there are no conversion options, apart from the "Use Gamma" item on
the iconbar menu - if this is ticked, the file is given a gamma correction of
1 / 1.8 (the inverse of my guess at the gamma value for my monitor!).

Icon Bar Menu:

Info		Standard useless program info

Single Task	When ticked. the program does not release control to the wimp.
		It therefore converts faster (but you can't do anything else!).
		Off by default.

Use Scale	When ticked, the program uses the "pHYS" chunk in the file (if
		supplied) to scale the picture. NOTE: The size is not
		guaranteed - I will supply some method of configuring real
		pixel sizes in a later version. On by default.

Use Gamma	When ticked, the program uses the "gAMA" chunk in the file (if
		supplied) to apply gamma correction. On by default.

Viewer Mode	When ticked, supresses queries about unsaved files on closing /
		quitting

Transparency	When clicked, brings up a screen allowing you to select
		transparency options, as follows:
		Ignore		Ignore transparency / alpha channels (all pixels
				considered opaque).
		Create mask	Create a mask (pixels whose opacity is less
				than the slider value are considered
				transparent).
		Use Background
		in bKGD chunk	If bKGD chunk supplied, use it. Otherwise
				use the colour selected by the button.
		Use specified
		colour		Always use the colour selected by the button.

Save Options	Save the above state of ticks above for the next time you run
		the program.

Quit		No prizes for guessing the effect of this one!

The program supports the Acorn desktop save and help protocols.

Known Bugs:
-----------
	Masks are not converted from 8bpp sprite files to PNG files (mainly
	because I'd probably have to produce a truecolour image)
	sBIT is not dealt with, so converting a 32k sprite to a PNG and back to
	a sprite results in a 16M colour sprite.

Future Enhancements:
--------------------
1	Allow specification of compression & interlacing when converting
	sprite files.
2	Tidy up interface (again)
3	Convert Acorn masks on 8bpp sprites
4	Lots of others which are in the source code...

Tedious legal message
=====================

   This application is freeware. It can be distributed freely as long as only
reasonable charges are made for media and distribution. I retain copyright on
all program code and documentation contained in this distribution.

   This software is supplied �as�is�: I make no warranty, expressed or
implied, of the merchantability of this software or its �tness for any
particular purpose. In no circumstances shall I be liable for any damage,
loss of pro�ts, or any indirect or consequential loss arising out of the use
of this software or inability to use this software, even if I have been
advised of the possibility of such loss.

   In other words, if your computer crashes, blows up, you lose all your work
etc. all because of !Png2Spr, don�t blame me.

Acknowledgments
---------------

Thanks are due to:

Greg Roelofs, for being helpful

Nick Smith, ANT Ltd, for sending me the official PNG sprites and pointing out
that I can't spell my own name.

Nick Roberts ("tigger@argonet.co.uk") for using the program and making some
suggestions to improve it.

Stewart Brodie for doing much the same

The producers of the Zlib & PNG support libraries

Copyrights
==========

The PNG support library (libpng) is copyright as follows:
   Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
   Copyright (c) 1996, 1997 Andreas Dilger
   Guy Eric Schalnat, Group 42, Inc.
   Contributing Authors:
      John Bowler
      Sam Bushell
      Kevin Bracey
      Andreas Dilger
      Magnus Holmgren
      Dave Martindale
      Greg Roelofs
      Guy Eric Schalnat
      Paul Schmidt
      Tom Tanner
      Tim Wegner

The inflate / deflate support library (zlib) is copyright as follows:
   Copyright (c) 1995-1996 Jean-loup Gailly and Mark Adler
00000000  21 50 4e 47 32 53 50 52  0a 3d 3d 3d 3d 3d 3d 3d  |!PNG2SPR.=======|
00000010  3d 0a 0a 28 63 29 20 54  2e 20 52 2e 20 54 61 6e  |=..(c) T. R. Tan|
00000020  6e 65 72 0a 32 20 43 61  76 65 6e 64 69 73 68 20  |ner.2 Cavendish |
00000030  43 6f 75 72 74 2c 20 4c  6f 6e 64 6f 6e 20 52 6f  |Court, London Ro|
00000040  61 64 2c 20 48 65 6d 65  6c 20 48 65 6d 70 73 74  |ad, Hemel Hempst|
00000050  65 61 64 2c 20 48 65 72  74 73 20 48 50 33 20 39  |ead, Herts HP3 9|
00000060  46 48 0a 0a 65 6d 61 69  6c 20 74 74 65 68 74 61  |FH..email ttehta|
00000070  6e 6e 40 61 72 67 6f 6e  65 74 2e 63 6f 2e 75 6b  |nn@argonet.co.uk|
00000080  0a 0a 0a 54 68 69 73 20  70 72 6f 67 72 61 6d 20  |...This program |
00000090  61 6c 6c 6f 77 73 20 63  6f 6e 76 65 72 73 69 6f  |allows conversio|
000000a0  6e 20 6f 66 20 67 72 61  70 68 69 63 73 20 69 6e  |n of graphics in|
000000b0  20 74 68 65 20 6e 65 77  20 22 50 4e 47 22 20 66  | the new "PNG" f|
000000c0  6f 72 6d 61 74 20 74 6f  20 41 63 6f 72 6e 0a 73  |ormat to Acorn.s|
000000d0  70 72 69 74 65 20 66 69  6c 65 73 2c 20 61 6e 64  |prite files, and|
000000e0  20 76 69 63 65 20 76 65  72 73 61 2e 20 4e 6f 74  | vice versa. Not|
000000f0  65 20 74 68 61 74 20 64  75 65 20 74 6f 20 74 68  |e that due to th|
00000100  65 20 41 63 6f 72 6e 20  73 70 72 69 74 65 20 66  |e Acorn sprite f|
00000110  6f 72 6d 61 74 73 2c 20  74 68 65 0a 70 72 6f 67  |ormats, the.prog|
00000120  72 61 6d 20 63 6f 6e 76  65 72 74 73 20 31 36 20  |ram converts 16 |
00000130  62 69 74 20 52 47 42 20  63 6f 6c 6f 75 72 73 20  |bit RGB colours |
00000140  74 6f 20 38 20 62 69 74  20 52 47 42 20 63 6f 6c  |to 8 bit RGB col|
00000150  6f 75 72 73 2e 20 41 6c  73 6f 2c 20 74 72 61 6e  |ours. Also, tran|
00000160  73 70 61 72 65 6e 63 79  20 69 73 0a 61 6e 20 6f  |sparency is.an o|
00000170  6e 20 2f 20 6f 66 66 20  6d 61 73 6b 2e 0a 0a 54  |n / off mask...T|
00000180  68 65 20 50 4e 47 20 77  65 62 20 70 61 67 65 73  |he PNG web pages|
00000190  20 28 73 70 65 63 69 66  69 63 61 74 69 6f 6e 73  | (specifications|
000001a0  20 26 20 65 78 61 6d 70  6c 65 20 66 69 6c 65 73  | & example files|
000001b0  29 20 61 72 65 20 74 6f  20 62 65 20 66 6f 75 6e  |) are to be foun|
000001c0  64 20 61 74 0a 68 74 74  70 3a 2f 2f 77 77 77 2e  |d at.http://www.|
000001d0  77 63 6f 2e 63 6f 6d 2f  7e 70 6e 67 2f 0a 0a 54  |wco.com/~png/..T|
000001e0  6f 20 63 6f 6e 76 65 72  74 20 61 20 50 4e 47 20  |o convert a PNG |
000001f0  66 69 6c 65 20 28 74 79  70 65 20 42 36 30 29 2c  |file (type B60),|
00000200  20 64 6f 75 62 6c 65 20  63 6c 69 63 6b 20 74 68  | double click th|
00000210  65 20 66 69 6c 65 2c 20  6f 72 20 64 72 6f 70 20  |e file, or drop |
00000220  74 68 65 20 66 69 6c 65  20 6f 6e 74 6f 0a 74 68  |the file onto.th|
00000230  65 20 70 72 6f 67 72 61  6d 20 69 63 6f 6e 20 6f  |e program icon o|
00000240  6e 20 74 68 65 20 69 63  6f 6e 20 62 61 72 2e 20  |n the icon bar. |
00000250  54 6f 20 73 61 76 65 20  74 68 65 20 66 69 6c 65  |To save the file|
00000260  20 77 68 65 6e 20 63 6f  6e 76 65 72 74 65 64 2c  | when converted,|
00000270  20 63 6c 69 63 6b 20 74  68 65 0a 6d 65 6e 75 20  | click the.menu |
00000280  62 75 74 74 6f 6e 20 6f  76 65 72 20 74 68 65 20  |button over the |
00000290  64 69 73 70 6c 61 79 65  64 20 70 69 63 74 75 72  |displayed pictur|
000002a0  65 2c 20 61 6e 64 20 64  72 61 67 20 74 68 65 20  |e, and drag the |
000002b0  73 70 72 69 74 65 20 74  6f 20 77 68 65 72 65 20  |sprite to where |
000002c0  79 6f 75 20 77 61 6e 74  0a 74 6f 20 73 61 76 65  |you want.to save|
000002d0  20 69 74 2c 20 6f 72 20  74 79 70 65 20 69 6e 20  | it, or type in |
000002e0  61 20 70 61 74 68 20 6e  61 6d 65 20 61 6e 64 20  |a path name and |
000002f0  63 6c 69 63 6b 20 4f 4b  2e 0a 0a 54 6f 20 63 6f  |click OK...To co|
00000300  6e 76 65 72 74 20 61 20  73 70 72 69 74 65 20 74  |nvert a sprite t|
00000310  6f 20 61 20 50 4e 47 20  66 69 6c 65 2c 20 64 72  |o a PNG file, dr|
00000320  6f 70 20 74 68 65 20 73  70 72 69 74 65 20 6f 6e  |op the sprite on|
00000330  74 6f 20 74 68 65 20 69  63 6f 6e 62 61 72 20 69  |to the iconbar i|
00000340  63 6f 6e 2e 0a 43 75 72  72 65 6e 74 6c 79 20 74  |con..Currently t|
00000350  68 65 72 65 20 61 72 65  20 6e 6f 20 63 6f 6e 76  |here are no conv|
00000360  65 72 73 69 6f 6e 20 6f  70 74 69 6f 6e 73 2c 20  |ersion options, |
00000370  61 70 61 72 74 20 66 72  6f 6d 20 74 68 65 20 22  |apart from the "|
00000380  55 73 65 20 47 61 6d 6d  61 22 20 69 74 65 6d 20  |Use Gamma" item |
00000390  6f 6e 0a 74 68 65 20 69  63 6f 6e 62 61 72 20 6d  |on.the iconbar m|
000003a0  65 6e 75 20 2d 20 69 66  20 74 68 69 73 20 69 73  |enu - if this is|
000003b0  20 74 69 63 6b 65 64 2c  20 74 68 65 20 66 69 6c  | ticked, the fil|
000003c0  65 20 69 73 20 67 69 76  65 6e 20 61 20 67 61 6d  |e is given a gam|
000003d0  6d 61 20 63 6f 72 72 65  63 74 69 6f 6e 20 6f 66  |ma correction of|
000003e0  0a 31 20 2f 20 31 2e 38  20 28 74 68 65 20 69 6e  |.1 / 1.8 (the in|
000003f0  76 65 72 73 65 20 6f 66  20 6d 79 20 67 75 65 73  |verse of my gues|
00000400  73 20 61 74 20 74 68 65  20 67 61 6d 6d 61 20 76  |s at the gamma v|
00000410  61 6c 75 65 20 66 6f 72  20 6d 79 20 6d 6f 6e 69  |alue for my moni|
00000420  74 6f 72 21 29 2e 0a 0a  49 63 6f 6e 20 42 61 72  |tor!)...Icon Bar|
00000430  20 4d 65 6e 75 3a 0a 0a  49 6e 66 6f 09 09 53 74  | Menu:..Info..St|
00000440  61 6e 64 61 72 64 20 75  73 65 6c 65 73 73 20 70  |andard useless p|
00000450  72 6f 67 72 61 6d 20 69  6e 66 6f 0a 0a 53 69 6e  |rogram info..Sin|
00000460  67 6c 65 20 54 61 73 6b  09 57 68 65 6e 20 74 69  |gle Task.When ti|
00000470  63 6b 65 64 2e 20 74 68  65 20 70 72 6f 67 72 61  |cked. the progra|
00000480  6d 20 64 6f 65 73 20 6e  6f 74 20 72 65 6c 65 61  |m does not relea|
00000490  73 65 20 63 6f 6e 74 72  6f 6c 20 74 6f 20 74 68  |se control to th|
000004a0  65 20 77 69 6d 70 2e 0a  09 09 49 74 20 74 68 65  |e wimp....It the|
000004b0  72 65 66 6f 72 65 20 63  6f 6e 76 65 72 74 73 20  |refore converts |
000004c0  66 61 73 74 65 72 20 28  62 75 74 20 79 6f 75 20  |faster (but you |
000004d0  63 61 6e 27 74 20 64 6f  20 61 6e 79 74 68 69 6e  |can't do anythin|
000004e0  67 20 65 6c 73 65 21 29  2e 0a 09 09 4f 66 66 20  |g else!)....Off |
000004f0  62 79 20 64 65 66 61 75  6c 74 2e 0a 0a 55 73 65  |by default...Use|
00000500  20 53 63 61 6c 65 09 57  68 65 6e 20 74 69 63 6b  | Scale.When tick|
00000510  65 64 2c 20 74 68 65 20  70 72 6f 67 72 61 6d 20  |ed, the program |
00000520  75 73 65 73 20 74 68 65  20 22 70 48 59 53 22 20  |uses the "pHYS" |
00000530  63 68 75 6e 6b 20 69 6e  20 74 68 65 20 66 69 6c  |chunk in the fil|
00000540  65 20 28 69 66 0a 09 09  73 75 70 70 6c 69 65 64  |e (if...supplied|
00000550  29 20 74 6f 20 73 63 61  6c 65 20 74 68 65 20 70  |) to scale the p|
00000560  69 63 74 75 72 65 2e 20  4e 4f 54 45 3a 20 54 68  |icture. NOTE: Th|
00000570  65 20 73 69 7a 65 20 69  73 20 6e 6f 74 0a 09 09  |e size is not...|
00000580  67 75 61 72 61 6e 74 65  65 64 20 2d 20 49 20 77  |guaranteed - I w|
00000590  69 6c 6c 20 73 75 70 70  6c 79 20 73 6f 6d 65 20  |ill supply some |
000005a0  6d 65 74 68 6f 64 20 6f  66 20 63 6f 6e 66 69 67  |method of config|
000005b0  75 72 69 6e 67 20 72 65  61 6c 0a 09 09 70 69 78  |uring real...pix|
000005c0  65 6c 20 73 69 7a 65 73  20 69 6e 20 61 20 6c 61  |el sizes in a la|
000005d0  74 65 72 20 76 65 72 73  69 6f 6e 2e 20 4f 6e 20  |ter version. On |
000005e0  62 79 20 64 65 66 61 75  6c 74 2e 0a 0a 55 73 65  |by default...Use|
000005f0  20 47 61 6d 6d 61 09 57  68 65 6e 20 74 69 63 6b  | Gamma.When tick|
00000600  65 64 2c 20 74 68 65 20  70 72 6f 67 72 61 6d 20  |ed, the program |
00000610  75 73 65 73 20 74 68 65  20 22 67 41 4d 41 22 20  |uses the "gAMA" |
00000620  63 68 75 6e 6b 20 69 6e  20 74 68 65 20 66 69 6c  |chunk in the fil|
00000630  65 20 28 69 66 0a 09 09  73 75 70 70 6c 69 65 64  |e (if...supplied|
00000640  29 20 74 6f 20 61 70 70  6c 79 20 67 61 6d 6d 61  |) to apply gamma|
00000650  20 63 6f 72 72 65 63 74  69 6f 6e 2e 20 4f 6e 20  | correction. On |
00000660  62 79 20 64 65 66 61 75  6c 74 2e 0a 0a 56 69 65  |by default...Vie|
00000670  77 65 72 20 4d 6f 64 65  09 57 68 65 6e 20 74 69  |wer Mode.When ti|
00000680  63 6b 65 64 2c 20 73 75  70 72 65 73 73 65 73 20  |cked, supresses |
00000690  71 75 65 72 69 65 73 20  61 62 6f 75 74 20 75 6e  |queries about un|
000006a0  73 61 76 65 64 20 66 69  6c 65 73 20 6f 6e 20 63  |saved files on c|
000006b0  6c 6f 73 69 6e 67 20 2f  0a 09 09 71 75 69 74 74  |losing /...quitt|
000006c0  69 6e 67 0a 0a 54 72 61  6e 73 70 61 72 65 6e 63  |ing..Transparenc|
000006d0  79 09 57 68 65 6e 20 63  6c 69 63 6b 65 64 2c 20  |y.When clicked, |
000006e0  62 72 69 6e 67 73 20 75  70 20 61 20 73 63 72 65  |brings up a scre|
000006f0  65 6e 20 61 6c 6c 6f 77  69 6e 67 20 79 6f 75 20  |en allowing you |
00000700  74 6f 20 73 65 6c 65 63  74 0a 09 09 74 72 61 6e  |to select...tran|
00000710  73 70 61 72 65 6e 63 79  20 6f 70 74 69 6f 6e 73  |sparency options|
00000720  2c 20 61 73 20 66 6f 6c  6c 6f 77 73 3a 0a 09 09  |, as follows:...|
00000730  49 67 6e 6f 72 65 09 09  49 67 6e 6f 72 65 20 74  |Ignore..Ignore t|
00000740  72 61 6e 73 70 61 72 65  6e 63 79 20 2f 20 61 6c  |ransparency / al|
00000750  70 68 61 20 63 68 61 6e  6e 65 6c 73 20 28 61 6c  |pha channels (al|
00000760  6c 20 70 69 78 65 6c 73  0a 09 09 09 09 63 6f 6e  |l pixels.....con|
00000770  73 69 64 65 72 65 64 20  6f 70 61 71 75 65 29 2e  |sidered opaque).|
00000780  0a 09 09 43 72 65 61 74  65 20 6d 61 73 6b 09 43  |...Create mask.C|
00000790  72 65 61 74 65 20 61 20  6d 61 73 6b 20 28 70 69  |reate a mask (pi|
000007a0  78 65 6c 73 20 77 68 6f  73 65 20 6f 70 61 63 69  |xels whose opaci|
000007b0  74 79 20 69 73 20 6c 65  73 73 0a 09 09 09 09 74  |ty is less.....t|
000007c0  68 61 6e 20 74 68 65 20  73 6c 69 64 65 72 20 76  |han the slider v|
000007d0  61 6c 75 65 20 61 72 65  20 63 6f 6e 73 69 64 65  |alue are conside|
000007e0  72 65 64 0a 09 09 09 09  74 72 61 6e 73 70 61 72  |red.....transpar|
000007f0  65 6e 74 29 2e 0a 09 09  55 73 65 20 42 61 63 6b  |ent)....Use Back|
00000800  67 72 6f 75 6e 64 0a 09  09 69 6e 20 62 4b 47 44  |ground...in bKGD|
00000810  20 63 68 75 6e 6b 09 49  66 20 62 4b 47 44 20 63  | chunk.If bKGD c|
00000820  68 75 6e 6b 20 73 75 70  70 6c 69 65 64 2c 20 75  |hunk supplied, u|
00000830  73 65 20 69 74 2e 20 4f  74 68 65 72 77 69 73 65  |se it. Otherwise|
00000840  0a 09 09 09 09 75 73 65  20 74 68 65 20 63 6f 6c  |.....use the col|
00000850  6f 75 72 20 73 65 6c 65  63 74 65 64 20 62 79 20  |our selected by |
00000860  74 68 65 20 62 75 74 74  6f 6e 2e 0a 09 09 55 73  |the button....Us|
00000870  65 20 73 70 65 63 69 66  69 65 64 0a 09 09 63 6f  |e specified...co|
00000880  6c 6f 75 72 09 09 41 6c  77 61 79 73 20 75 73 65  |lour..Always use|
00000890  20 74 68 65 20 63 6f 6c  6f 75 72 20 73 65 6c 65  | the colour sele|
000008a0  63 74 65 64 20 62 79 20  74 68 65 20 62 75 74 74  |cted by the butt|
000008b0  6f 6e 2e 0a 0a 53 61 76  65 20 4f 70 74 69 6f 6e  |on...Save Option|
000008c0  73 09 53 61 76 65 20 74  68 65 20 61 62 6f 76 65  |s.Save the above|
000008d0  20 73 74 61 74 65 20 6f  66 20 74 69 63 6b 73 20  | state of ticks |
000008e0  61 62 6f 76 65 20 66 6f  72 20 74 68 65 20 6e 65  |above for the ne|
000008f0  78 74 20 74 69 6d 65 20  79 6f 75 20 72 75 6e 0a  |xt time you run.|
00000900  09 09 74 68 65 20 70 72  6f 67 72 61 6d 2e 0a 0a  |..the program...|
00000910  51 75 69 74 09 09 4e 6f  20 70 72 69 7a 65 73 20  |Quit..No prizes |
00000920  66 6f 72 20 67 75 65 73  73 69 6e 67 20 74 68 65  |for guessing the|
00000930  20 65 66 66 65 63 74 20  6f 66 20 74 68 69 73 20  | effect of this |
00000940  6f 6e 65 21 0a 0a 54 68  65 20 70 72 6f 67 72 61  |one!..The progra|
00000950  6d 20 73 75 70 70 6f 72  74 73 20 74 68 65 20 41  |m supports the A|
00000960  63 6f 72 6e 20 64 65 73  6b 74 6f 70 20 73 61 76  |corn desktop sav|
00000970  65 20 61 6e 64 20 68 65  6c 70 20 70 72 6f 74 6f  |e and help proto|
00000980  63 6f 6c 73 2e 0a 0a 4b  6e 6f 77 6e 20 42 75 67  |cols...Known Bug|
00000990  73 3a 0a 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 0a 09  |s:.-----------..|
000009a0  4d 61 73 6b 73 20 61 72  65 20 6e 6f 74 20 63 6f  |Masks are not co|
000009b0  6e 76 65 72 74 65 64 20  66 72 6f 6d 20 38 62 70  |nverted from 8bp|
000009c0  70 20 73 70 72 69 74 65  20 66 69 6c 65 73 20 74  |p sprite files t|
000009d0  6f 20 50 4e 47 20 66 69  6c 65 73 20 28 6d 61 69  |o PNG files (mai|
000009e0  6e 6c 79 0a 09 62 65 63  61 75 73 65 20 49 27 64  |nly..because I'd|
000009f0  20 70 72 6f 62 61 62 6c  79 20 68 61 76 65 20 74  | probably have t|
00000a00  6f 20 70 72 6f 64 75 63  65 20 61 20 74 72 75 65  |o produce a true|
00000a10  63 6f 6c 6f 75 72 20 69  6d 61 67 65 29 0a 09 73  |colour image)..s|
00000a20  42 49 54 20 69 73 20 6e  6f 74 20 64 65 61 6c 74  |BIT is not dealt|
00000a30  20 77 69 74 68 2c 20 73  6f 20 63 6f 6e 76 65 72  | with, so conver|
00000a40  74 69 6e 67 20 61 20 33  32 6b 20 73 70 72 69 74  |ting a 32k sprit|
00000a50  65 20 74 6f 20 61 20 50  4e 47 20 61 6e 64 20 62  |e to a PNG and b|
00000a60  61 63 6b 20 74 6f 0a 09  61 20 73 70 72 69 74 65  |ack to..a sprite|
00000a70  20 72 65 73 75 6c 74 73  20 69 6e 20 61 20 31 36  | results in a 16|
00000a80  4d 20 63 6f 6c 6f 75 72  20 73 70 72 69 74 65 2e  |M colour sprite.|
00000a90  0a 0a 46 75 74 75 72 65  20 45 6e 68 61 6e 63 65  |..Future Enhance|
00000aa0  6d 65 6e 74 73 3a 0a 2d  2d 2d 2d 2d 2d 2d 2d 2d  |ments:.---------|
00000ab0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 0a 31 09 41 6c  |-----------.1.Al|
00000ac0  6c 6f 77 20 73 70 65 63  69 66 69 63 61 74 69 6f  |low specificatio|
00000ad0  6e 20 6f 66 20 63 6f 6d  70 72 65 73 73 69 6f 6e  |n of compression|
00000ae0  20 26 20 69 6e 74 65 72  6c 61 63 69 6e 67 20 77  | & interlacing w|
00000af0  68 65 6e 20 63 6f 6e 76  65 72 74 69 6e 67 0a 09  |hen converting..|
00000b00  73 70 72 69 74 65 20 66  69 6c 65 73 2e 0a 32 09  |sprite files..2.|
00000b10  54 69 64 79 20 75 70 20  69 6e 74 65 72 66 61 63  |Tidy up interfac|
00000b20  65 20 28 61 67 61 69 6e  29 0a 33 09 43 6f 6e 76  |e (again).3.Conv|
00000b30  65 72 74 20 41 63 6f 72  6e 20 6d 61 73 6b 73 20  |ert Acorn masks |
00000b40  6f 6e 20 38 62 70 70 20  73 70 72 69 74 65 73 0a  |on 8bpp sprites.|
00000b50  34 09 4c 6f 74 73 20 6f  66 20 6f 74 68 65 72 73  |4.Lots of others|
00000b60  20 77 68 69 63 68 20 61  72 65 20 69 6e 20 74 68  | which are in th|
00000b70  65 20 73 6f 75 72 63 65  20 63 6f 64 65 2e 2e 2e  |e source code...|
00000b80  0a 0a 54 65 64 69 6f 75  73 20 6c 65 67 61 6c 20  |..Tedious legal |
00000b90  6d 65 73 73 61 67 65 0a  3d 3d 3d 3d 3d 3d 3d 3d  |message.========|
00000ba0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 0a 0a 20  |=============.. |
00000bb0  20 20 54 68 69 73 20 61  70 70 6c 69 63 61 74 69  |  This applicati|
00000bc0  6f 6e 20 69 73 20 66 72  65 65 77 61 72 65 2e 20  |on is freeware. |
00000bd0  49 74 20 63 61 6e 20 62  65 20 64 69 73 74 72 69  |It can be distri|
00000be0  62 75 74 65 64 20 66 72  65 65 6c 79 20 61 73 20  |buted freely as |
00000bf0  6c 6f 6e 67 20 61 73 20  6f 6e 6c 79 0a 72 65 61  |long as only.rea|
00000c00  73 6f 6e 61 62 6c 65 20  63 68 61 72 67 65 73 20  |sonable charges |
00000c10  61 72 65 20 6d 61 64 65  20 66 6f 72 20 6d 65 64  |are made for med|
00000c20  69 61 20 61 6e 64 20 64  69 73 74 72 69 62 75 74  |ia and distribut|
00000c30  69 6f 6e 2e 20 49 20 72  65 74 61 69 6e 20 63 6f  |ion. I retain co|
00000c40  70 79 72 69 67 68 74 20  6f 6e 0a 61 6c 6c 20 70  |pyright on.all p|
00000c50  72 6f 67 72 61 6d 20 63  6f 64 65 20 61 6e 64 20  |rogram code and |
00000c60  64 6f 63 75 6d 65 6e 74  61 74 69 6f 6e 20 63 6f  |documentation co|
00000c70  6e 74 61 69 6e 65 64 20  69 6e 20 74 68 69 73 20  |ntained in this |
00000c80  64 69 73 74 72 69 62 75  74 69 6f 6e 2e 0a 0a 20  |distribution... |
00000c90  20 20 54 68 69 73 20 73  6f 66 74 77 61 72 65 20  |  This software |
00000ca0  69 73 20 73 75 70 70 6c  69 65 64 20 94 61 73 a0  |is supplied .as.|
00000cb0  69 73 95 3a 20 49 20 6d  61 6b 65 20 6e 6f 20 77  |is.: I make no w|
00000cc0  61 72 72 61 6e 74 79 2c  20 65 78 70 72 65 73 73  |arranty, express|
00000cd0  65 64 20 6f 72 0a 69 6d  70 6c 69 65 64 2c 20 6f  |ed or.implied, o|
00000ce0  66 20 74 68 65 20 6d 65  72 63 68 61 6e 74 61 62  |f the merchantab|
00000cf0  69 6c 69 74 79 20 6f 66  20 74 68 69 73 20 73 6f  |ility of this so|
00000d00  66 74 77 61 72 65 20 6f  72 20 69 74 73 20 9e 74  |ftware or its .t|
00000d10  6e 65 73 73 20 66 6f 72  20 61 6e 79 0a 70 61 72  |ness for any.par|
00000d20  74 69 63 75 6c 61 72 20  70 75 72 70 6f 73 65 2e  |ticular purpose.|
00000d30  20 49 6e 20 6e 6f 20 63  69 72 63 75 6d 73 74 61  | In no circumsta|
00000d40  6e 63 65 73 20 73 68 61  6c 6c 20 49 20 62 65 20  |nces shall I be |
00000d50  6c 69 61 62 6c 65 20 66  6f 72 20 61 6e 79 20 64  |liable for any d|
00000d60  61 6d 61 67 65 2c 0a 6c  6f 73 73 20 6f 66 20 70  |amage,.loss of p|
00000d70  72 6f 9e 74 73 2c 20 6f  72 20 61 6e 79 20 69 6e  |ro.ts, or any in|
00000d80  64 69 72 65 63 74 20 6f  72 20 63 6f 6e 73 65 71  |direct or conseq|
00000d90  75 65 6e 74 69 61 6c 20  6c 6f 73 73 20 61 72 69  |uential loss ari|
00000da0  73 69 6e 67 20 6f 75 74  20 6f 66 20 74 68 65 20  |sing out of the |
00000db0  75 73 65 0a 6f 66 20 74  68 69 73 20 73 6f 66 74  |use.of this soft|
00000dc0  77 61 72 65 20 6f 72 20  69 6e 61 62 69 6c 69 74  |ware or inabilit|
00000dd0  79 20 74 6f 20 75 73 65  20 74 68 69 73 20 73 6f  |y to use this so|
00000de0  66 74 77 61 72 65 2c 20  65 76 65 6e 20 69 66 20  |ftware, even if |
00000df0  49 20 68 61 76 65 20 62  65 65 6e 0a 61 64 76 69  |I have been.advi|
00000e00  73 65 64 20 6f 66 20 74  68 65 20 70 6f 73 73 69  |sed of the possi|
00000e10  62 69 6c 69 74 79 20 6f  66 20 73 75 63 68 20 6c  |bility of such l|
00000e20  6f 73 73 2e 0a 0a 20 20  20 49 6e 20 6f 74 68 65  |oss...   In othe|
00000e30  72 20 77 6f 72 64 73 2c  20 69 66 20 79 6f 75 72  |r words, if your|
00000e40  20 63 6f 6d 70 75 74 65  72 20 63 72 61 73 68 65  | computer crashe|
00000e50  73 2c 20 62 6c 6f 77 73  20 75 70 2c 20 79 6f 75  |s, blows up, you|
00000e60  20 6c 6f 73 65 20 61 6c  6c 20 79 6f 75 72 20 77  | lose all your w|
00000e70  6f 72 6b 0a 65 74 63 2e  20 61 6c 6c 20 62 65 63  |ork.etc. all bec|
00000e80  61 75 73 65 20 6f 66 20  21 50 6e 67 32 53 70 72  |ause of !Png2Spr|
00000e90  2c 20 64 6f 6e 91 74 20  62 6c 61 6d 65 20 6d 65  |, don.t blame me|
00000ea0  2e 0a 0a 41 63 6b 6e 6f  77 6c 65 64 67 6d 65 6e  |...Acknowledgmen|
00000eb0  74 73 0a 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |ts.-------------|
00000ec0  2d 2d 0a 0a 54 68 61 6e  6b 73 20 61 72 65 20 64  |--..Thanks are d|
00000ed0  75 65 20 74 6f 3a 0a 0a  47 72 65 67 20 52 6f 65  |ue to:..Greg Roe|
00000ee0  6c 6f 66 73 2c 20 66 6f  72 20 62 65 69 6e 67 20  |lofs, for being |
00000ef0  68 65 6c 70 66 75 6c 0a  0a 4e 69 63 6b 20 53 6d  |helpful..Nick Sm|
00000f00  69 74 68 2c 20 41 4e 54  20 4c 74 64 2c 20 66 6f  |ith, ANT Ltd, fo|
00000f10  72 20 73 65 6e 64 69 6e  67 20 6d 65 20 74 68 65  |r sending me the|
00000f20  20 6f 66 66 69 63 69 61  6c 20 50 4e 47 20 73 70  | official PNG sp|
00000f30  72 69 74 65 73 20 61 6e  64 20 70 6f 69 6e 74 69  |rites and pointi|
00000f40  6e 67 20 6f 75 74 0a 74  68 61 74 20 49 20 63 61  |ng out.that I ca|
00000f50  6e 27 74 20 73 70 65 6c  6c 20 6d 79 20 6f 77 6e  |n't spell my own|
00000f60  20 6e 61 6d 65 2e 0a 0a  4e 69 63 6b 20 52 6f 62  | name...Nick Rob|
00000f70  65 72 74 73 20 28 22 74  69 67 67 65 72 40 61 72  |erts ("tigger@ar|
00000f80  67 6f 6e 65 74 2e 63 6f  2e 75 6b 22 29 20 66 6f  |gonet.co.uk") fo|
00000f90  72 20 75 73 69 6e 67 20  74 68 65 20 70 72 6f 67  |r using the prog|
00000fa0  72 61 6d 20 61 6e 64 20  6d 61 6b 69 6e 67 20 73  |ram and making s|
00000fb0  6f 6d 65 0a 73 75 67 67  65 73 74 69 6f 6e 73 20  |ome.suggestions |
00000fc0  74 6f 20 69 6d 70 72 6f  76 65 20 69 74 2e 0a 0a  |to improve it...|
00000fd0  53 74 65 77 61 72 74 20  42 72 6f 64 69 65 20 66  |Stewart Brodie f|
00000fe0  6f 72 20 64 6f 69 6e 67  20 6d 75 63 68 20 74 68  |or doing much th|
00000ff0  65 20 73 61 6d 65 0a 0a  54 68 65 20 70 72 6f 64  |e same..The prod|
00001000  75 63 65 72 73 20 6f 66  20 74 68 65 20 5a 6c 69  |ucers of the Zli|
00001010  62 20 26 20 50 4e 47 20  73 75 70 70 6f 72 74 20  |b & PNG support |
00001020  6c 69 62 72 61 72 69 65  73 0a 0a 43 6f 70 79 72  |libraries..Copyr|
00001030  69 67 68 74 73 0a 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |ights.==========|
00001040  0a 0a 54 68 65 20 50 4e  47 20 73 75 70 70 6f 72  |..The PNG suppor|
00001050  74 20 6c 69 62 72 61 72  79 20 28 6c 69 62 70 6e  |t library (libpn|
00001060  67 29 20 69 73 20 63 6f  70 79 72 69 67 68 74 20  |g) is copyright |
00001070  61 73 20 66 6f 6c 6c 6f  77 73 3a 0a 20 20 20 43  |as follows:.   C|
00001080  6f 70 79 72 69 67 68 74  20 28 63 29 20 31 39 39  |opyright (c) 199|
00001090  35 2c 20 31 39 39 36 20  47 75 79 20 45 72 69 63  |5, 1996 Guy Eric|
000010a0  20 53 63 68 61 6c 6e 61  74 2c 20 47 72 6f 75 70  | Schalnat, Group|
000010b0  20 34 32 2c 20 49 6e 63  2e 0a 20 20 20 43 6f 70  | 42, Inc..   Cop|
000010c0  79 72 69 67 68 74 20 28  63 29 20 31 39 39 36 2c  |yright (c) 1996,|
000010d0  20 31 39 39 37 20 41 6e  64 72 65 61 73 20 44 69  | 1997 Andreas Di|
000010e0  6c 67 65 72 0a 20 20 20  47 75 79 20 45 72 69 63  |lger.   Guy Eric|
000010f0  20 53 63 68 61 6c 6e 61  74 2c 20 47 72 6f 75 70  | Schalnat, Group|
00001100  20 34 32 2c 20 49 6e 63  2e 0a 20 20 20 43 6f 6e  | 42, Inc..   Con|
00001110  74 72 69 62 75 74 69 6e  67 20 41 75 74 68 6f 72  |tributing Author|
00001120  73 3a 0a 20 20 20 20 20  20 4a 6f 68 6e 20 42 6f  |s:.      John Bo|
00001130  77 6c 65 72 0a 20 20 20  20 20 20 53 61 6d 20 42  |wler.      Sam B|
00001140  75 73 68 65 6c 6c 0a 20  20 20 20 20 20 4b 65 76  |ushell.      Kev|
00001150  69 6e 20 42 72 61 63 65  79 0a 20 20 20 20 20 20  |in Bracey.      |
00001160  41 6e 64 72 65 61 73 20  44 69 6c 67 65 72 0a 20  |Andreas Dilger. |
00001170  20 20 20 20 20 4d 61 67  6e 75 73 20 48 6f 6c 6d  |     Magnus Holm|
00001180  67 72 65 6e 0a 20 20 20  20 20 20 44 61 76 65 20  |gren.      Dave |
00001190  4d 61 72 74 69 6e 64 61  6c 65 0a 20 20 20 20 20  |Martindale.     |
000011a0  20 47 72 65 67 20 52 6f  65 6c 6f 66 73 0a 20 20  | Greg Roelofs.  |
000011b0  20 20 20 20 47 75 79 20  45 72 69 63 20 53 63 68  |    Guy Eric Sch|
000011c0  61 6c 6e 61 74 0a 20 20  20 20 20 20 50 61 75 6c  |alnat.      Paul|
000011d0  20 53 63 68 6d 69 64 74  0a 20 20 20 20 20 20 54  | Schmidt.      T|
000011e0  6f 6d 20 54 61 6e 6e 65  72 0a 20 20 20 20 20 20  |om Tanner.      |
000011f0  54 69 6d 20 57 65 67 6e  65 72 0a 0a 54 68 65 20  |Tim Wegner..The |
00001200  69 6e 66 6c 61 74 65 20  2f 20 64 65 66 6c 61 74  |inflate / deflat|
00001210  65 20 73 75 70 70 6f 72  74 20 6c 69 62 72 61 72  |e support librar|
00001220  79 20 28 7a 6c 69 62 29  20 69 73 20 63 6f 70 79  |y (zlib) is copy|
00001230  72 69 67 68 74 20 61 73  20 66 6f 6c 6c 6f 77 73  |right as follows|
00001240  3a 0a 20 20 20 43 6f 70  79 72 69 67 68 74 20 28  |:.   Copyright (|
00001250  63 29 20 31 39 39 35 2d  31 39 39 36 20 4a 65 61  |c) 1995-1996 Jea|
00001260  6e 2d 6c 6f 75 70 20 47  61 69 6c 6c 79 20 61 6e  |n-loup Gailly an|
00001270  64 20 4d 61 72 6b 20 41  64 6c 65 72 0a           |d Mark Adler.|
0000127d