property width

(r/o) int32 width;

Typ

Zugriff

This property returns the width of this bitmap resource.
function onTest()
{
    var factory = shell.factory;
    var thumb = (factory) ? factory.createBitmap("myBmp", "../content/img1.png", scene) : null;
    if (thumb)
    {
        shell.print("width = " + thumb.width);
    }
}