Game authors and players, please read this thread!


Adventure Game Studio Official

Legacy issues related to previous versions of AGS and AC

Issue: RawDrawImageCropped

Pages: [1]

HeirOfNorton

  • Guest
« on: 27 Jun 2006, 08:04 »
This occurred to me as a useful addition, and I haven't seen it in the tracker. Basically specifying a sub-rectangle of the sprite to be drawn, rather than having to draw the whole thing.

At the moment, this can be done with:
[code]
//not quite true code ahead
DynamicSprite.CreateFromExistingSprite
DynamicSprite.Crop
RawDrawImage
[/code]

but this can get a little tedious if it is something done very often, or with several different parts of the original sprite.

On top of that, if RawDrawImage is just a wrapper for Allegro's blit function then this should be pretty easy to implement, and will run quite a bit faster than the above code.

Pages: [1]

Issue Details

  • Reported
    27 Jun 2006, 08:04
  • Updated
    01 Jan 1970, 01:00
  • View Status
    Public
  • Type
  • Status
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    (none)

Tags



Powered by: SMF Project Tools 0.5.3 © Niko Pahajoki 2007-2011