DrawingSurface* DynamicSprite.GetDrawingSurface();
Gets the drawing surface for this dynamic sprite, which allows you to modify the sprite by
drawing onto it in various ways.
After calling this method, use the various DrawingSurface functions to modify the
sprite, then call Release on the surface when you are finished.
Example:
DynamicSprite *sprite = DynamicSprite.CreateFromExistingSprite(object[0].Graphic);
DrawingSurface *surface = sprite.GetDrawingSurface();
surface.DrawingColor = 13;
surface.DrawLine(0, 0, 20, 20);
surface.Release();
object[0].Graphic = sprite.Graphic;
Wait(40);
sprite.Delete();
this creates a dynamic sprite as a copy of Object 0's existing sprite, draws
a pink diagonal line across it, sets this new sprite onto the object for 1 second
and then removes it.
See Also: DynamicSprite.CreateFromExistingSprite,
DrawingSurface.DrawLine,
DrawingSurface.Release
|