DrawingSurface.Release()
Tells AGS that you have finished drawing onto this surface, and that AGS can now upload
the changed image into video memory.
After calling this method, you can no longer use the DrawingSurface instance. To do
any further drawing, you need to get the surface again.
Example:
DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
surface.DrawingColor = 14;
surface.DrawLine(0, 0, 50, 50);
surface.Release();
draws a yellow diagonal line across the top-left of the current room background,
then releases the image.
See Also: DynamicSprite.GetDrawingSurface,
Room.GetDrawingSurfaceForBackground
|