filenameThe filename to use when saving image to disk.
typeThis parameter is current not used.
Zurückgegebener Wert
bool
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);
}
}