method save

bool save(string filename,string type);

Argumente

Zurückgegebener Wert

This method saves the current bitmap to disk with the given filename. The type is currently not being used. Image is saved as a BMP image. The method returns false if failure.
function onTest()
{
    var factory = shell.factory;
    var thumb = (factory) ? factory.createBitmap("myBmp", "../content/img1.png", scene) : null;
    if (thumb)
    {
        // NOTE: second parameter is currently not used.
        thumb.save("C:\\temp\new_img.bmp", null);
    }
}