From: jerry AT eteklabs DOT nospam DOT com (Jerry Lawrence) Newsgroups: comp.os.msdos.djgpp Subject: Re: Writing Sprite Editor for Allegro Need help, (Source Included) Date: Sun, 26 Apr 1998 15:35:24 -0400 Message-ID: References: <354346ed DOT 0 AT daisy DOT ans DOT com DOT au> Organization: e-Tek Labs NNTP-Posting-Host: dial-q-12.netacc.net Lines: 24 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article , Shawn AT talula DOT demon DOT co DOT uk says... > WWynd's writes: > > >Rotating a BMP 90degrees > > You could use the Allegro rotate_sprite() function. Or, since this is > fixed to a right angle, just make a loop that scans through an image > calling getpixel(), and putpixel() to write each value to a new > location: this rotation is just a matter of flipping the two axis. Incidently, Shawn, at very low resolutions, ie 8x8 pixels, the sprite rotate functions lose a pixel row on the top and left side (i believe) I am working on a arcade game graphics editor, AGE, which uses Allegro as a graphics library, and I was adding a set of tools, rotate, slide, flood fill, etc... and i found i could use the allegro analogs. It wa then that i found this rotate behavior. I made a simple nested-for to rotate it, lossless. just thought yo might want to know. -jerry