spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting

DrawingSurface functions and properties

The DrawingSurface family of functions allow you to directly draw onto dynamic sprites and room backgrounds in the game. You get a drawing surface by calling DynamicSprite.GetDrawingSurface or Room.GetDrawingSurfaceForBackground, and you can then use the following methods to draw onto the surface.

IMPORTANT: You MUST call the Release method when you have finished drawing onto the surface. This allows AGS to update its cached copies of the image and upload it to video memory if appropriate.

In this section:

Clear (drawing surface)
CreateCopy
DrawCircle
DrawImage
DrawLine
DrawMessageWrapped
DrawPixel
DrawRectangle
DrawString
DrawStringWrapped
DrawSurface
DrawTriangle
Release (drawing surface)
DrawingColor property
GetPixel
Height property (drawing surface)
UseHighResCoordinates property
Width property (drawing surface)


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.