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)
|