DynamicSprite.SaveToFile(string filename)
Saves the dynamic sprite to the specified file.
The filename you supply must have a .PCX or .BMP extension; they are the only
two file types that the engine supports.
Returns 1 if the sprite was saved successfully, or 0 if it failed.
Example:
DynamicSprite* sprite = DynamicSprite.CreateFromFile("CustomAvatar.bmp");
sprite.Rotate(90);
sprite.SaveToFile("RotatedAvatar.bmp");
sprite.Delete();
will load the CustomAvatar.bmp image, rotate it 90 degrees clockwise, then
save the result back to the disk.
See Also: DynamicSprite.CreateFromFile,
SaveScreenShot
|