Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: GarageGothic on Tue 02/05/2006 14:00:44

Title: SUGGESTION: Expanded CreateFromScreenShot functionality
Post by: GarageGothic on Tue 02/05/2006 14:00:44
This thread (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26384.0)  made me think of how you could use DynamicSprite.CreateFromScreenShot as a workaround to create antialiased text seemingly without a gui background (for use with LucasArts-style dialog, mouseover description etc.).

However, grabbing the whole screen and cropping it to size every frame would make for quit a slowdown, so I was wondering if it would be a huge change to expand the DynamicSprite.CreateFromScreenShot(optional int width, optional int height) function to DynamicSprite.CreateFromScreenShot(optional int width, optional int height, optional int x, optional int y, optional int screenwidth, optional int screenheight) to match the functionality of the CreateFromBackground function? That way we could grab a small bit of the screen as a DynamicSprite and use for a gui background to print antialiased text on.

Thanks for reading, CJ.
Title: Re: SUGGESTION: Expanded CreateFromScreenShot functionality
Post by: Pumaman on Mon 08/05/2006 20:27:07
Interesting idea, however it would probably be better to actually fix the anti-aliased text to work on transparent GUIs. I'll look into it.