Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!apple!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: comp.sys.amiga.tech Subject: Re: Simple IFF question Message-ID: <13997@well.UUCP> Date: 8 Oct 89 04:58:26 GMT References: <1745@sauron.Columbia.NCR.COM> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Distribution: na Organization: Electronic Philistines. Lines: 20 Quote: "This is stupid." -- Vila "When did that ever stop us?" -- Avon In article <1745@sauron.Columbia.NCR.COM> randy@sauron.Columbia.NCR.COM (Randy Smith) writes: >"Amiga ILBMs images must be a even number of bytes wide. Smaller images >(such as brushes) are padded to an even byte width." > >My question is are the height and width values in the BMHD adjusted to >take into account the padding or do they reflect the true size of the >bitmap without the padding. [ ... ] BMHD.w reflects the true width of the bitmap; you are supposed to "know" about the padding, and mask off extra bits to zero. BMHD.h is always an exact value. Amiga BitMaps are required to be word-aligned, too, so this works out nicely. _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab -- The Guy in The Cape INET: well!ewhac@ucbvax.Berkeley.EDU \_ -_ Recumbent Bikes: UUCP: pacbell > !{well,unicom}!ewhac O----^o The Only Way To Fly. hplabs / (pronounced "AE-wack") "I've been busy..."