DynamicSprite.Flip(eFlipDirection);
Flips the dynamic sprite according to the parameter:
eFlipLeftToRight flips the image from left to right
eFlipUpsideDown flips the image from top to bottom
eFlipBoth flips the image from top to bottom and left to right
Example:
DynamicSprite* sprite = DynamicSprite.CreateFromFile("CustomAvatar.bmp");
sprite.Flip(eFlipUpsideDown);
DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
surface.DrawImage(100, 100, sprite.Graphic);
surface.Release();
sprite.Delete();
will load the CustomAvatar.bmp image, flip it upside down, and then
draw it onto the room background at (100,100).
See Also: DynamicSprite.Crop,
DynamicSprite.Resize,
DynamicSprite.Rotate
|