In Livecode, how do you upload images that are on the device the app is running on? -


if app on ipad, how retrieve images on ipad?

the following project of mine. should work that.

function rescale theimgwidth,theimgheight,thecdwidth,thecdheight   if thecdwidth/theimgwidth < thecdheight/theimgheight     put thecdwidth / theimgwidth myratio   else     put thecdheight / theimgheight myratio   end if   put theimgwidth * myratio mynewwidth   put theimgheight * myratio mynewheight   return mynewwidth,mynewheight end rescale  on pickphoto      set visible of templateimage false      if environment "mobile"           mobilepickphoto "library"           put result rslt           if rslt "cancel"                 exit pickphoto           else                if there image "photo"                     delete image "photo"                end if                put long id of last img myimage                set name of myimage "photo"           end if      else           answer file "choose picture..." type "gif|gif|giff" or type "jpeg|jpg,jpeg|jpeg" or type "png|png|pngf" or type "all files|*|*"           put result rslt           if result "cancel" or empty                 exit pickphoto           else                put myfile                if there image "photo"                     delete image "photo"                end if                create image "photo"                set filename of myfile                put myimage           end if      end if      if there myimage           put rescale(the formattedwidth of myimage,the formattedheight of myimage,the width of cd,the height of cd) mywh           set width of myimage item 1 of mywh           set height of myimage item 2 of mywh           set loc of myimage loc of cd           show myimage      end if end pickphoto 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -