Path: utzoo!mnetor!uunet!ncc!alberta!att-ih!ihnp4!ucbvax!USU.BITNET!SLMYQ From: SLMYQ@USU.BITNET Newsgroups: comp.sys.amiga.tech Subject: Re: Convering brushes to C code Message-ID: <8804150328.AA26808@jade.berkeley.edu> Date: 15 Apr 88 03:27:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 24 In some article (Chuck McManis) writes: >I don't know how to do it for Assembly language (except for a *real* >kludgy way) but I have done this with C several times. You can use >two programs "zapicon" and "Icon2C". The first is part of the IFF >distribution disk (Fish Disk #64) and will convert a "brush" to an >"icon" (even if it is more than 2 bitplanes), and then the program >Icon2C which is available on the Extras Disk I believe and possibly >a Fish Disk which will take the icon and convert it to C code. The >C code will have to be edited but you can take out just the Image >definition, or the Image and Gadget definition or the Image, Gadget, >and DiskObject definitions. Quite useful and it works with the caveat >that the brush really should be designed on a screen with the same >attributes as the destination screen including resolution and palette. Everyone seems to be missing something. DeluxePaint brushes are standard ILBM files!!! Which means you can use the "ILBMDump" program that comes with all the IFF junk to convert brushes directly to C code. It's much easier, to say the least, and it can create sprite and attached sprite formats also. Just a thought...has anyone tried loading a brush as a picture? Or a picture as a brush? Bryan Ford (SLMYQ@USU.BITNET)