Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Crimson Wizard on Wed 16/09/2009 15:09:39

Title: [SUGGESTION] Function to draw piece of one drawing surface to another
Post by: Crimson Wizard on Wed 16/09/2009 15:09:39
It looks like there's no way to do this except for creating Dynamic Sprite first, as at cut from source drawing surface.
I explained why this could be needed here:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=38863.0
Title: Re: [SUGGESTION] Function to draw piece of one drawing surface to another
Post by: Pumaman on Wed 16/09/2009 20:32:28
I suppose an extra two optional parameters to the exisitng DynamicSprite.DrawImage allowing you to specify the X and Y co-ordinates in the source image would resolve this?
Title: Re: [SUGGESTION] Function to draw piece of one drawing surface to another
Post by: Crimson Wizard on Wed 16/09/2009 21:01:43
Quote from: Pumaman on Wed 16/09/2009 20:32:28
I suppose an extra two optional parameters to the exisitng DynamicSprite.DrawImage allowing you to specify the X and Y co-ordinates in the source image would resolve this?
Full rectangle coordinates (srcX1, srcY1, srcX2, srcY2) - to make it precise - yes, it would be nice :)