--------------------------------------------------- 
-- FBA Tutorials
--
-- Tutorial / 03 / LoadImage and get more info
--
--------------------------------------------------- 
--
-- This sample will show you how to get info from your
-- images
--
--------------------------------------------------- 


loadimage(0, "block.png")


function onmainloop()	

         local width, height
         
         -- get image width and height
         width = imagewidth(0)
         height = imageheight(0)

         -- with "print" function you can output some debug text on your screen with
         -- the color you specified
         clear(0,0,0)
         print(10, 50, "Image Width Is " .. width .. " pixels", 255, 0, 0)
         print(10, 80, "Image Height Is " .. height .. " pixels", 0, 0, 255)
         
         if (mousedown() > 0) then
            quit()
         end

end
