getPictureURL Method

This command will return the URL of the picture on the local webserver.

pictureURL=intel.xdk.camera.getPictureURL(pictureFilename);

Description:

Pictures that are in the picture list may be referenced on the application's local webserver. To get the URL of those pictures, pass the filename of those pictures on the picture list to this method.

Available Platforms:

Parameters:

pictureFilename: The name of the picture to get the URL for referenced from the array returned from getPictureList

Example:


var arrPictureList = intel.xdk.camera.getPictureList();
for (var x=0;x<arrPictureList.length;x++)
{
  // create image 
  var newImage = document.createElement('img');
  newImage.src=intel.xdk.camera.getPictureURL(arrPictureList[x]);
  newImage.setAttribute("style","width:100px;height:100px;");
  newImage.id=document.getElementById("img_" + arrPictureList[x]);
  document.body.appendChild(newImage);
}
            
Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.