Can anyone please clarify me :
-
What is the maximum image size (in pixels) which can I load on ipad3? Can I load a such large image in a setcontext() window? Will the extends be clipped ? How can I free the memory allocated for the image and draw another one? Choosing the same name?
-
Can I use folders in ‘Dropbox:’ ?
-
Can I use Codea API to load images in the project, and, if no, why not? ( the Codea file manager is there, nice and charm, why to have reprogram a new one in app?)
Thanks
Thanks Simeon,
-- testimg
-- Use this function to perform your initial setup
function setup()
print("Hello World!")
end
-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(40, 40, 50)
sprite("Dropbox:10000_2187_1690",WIDTH/2,HEIGHT/2)
-- Do your drawing here
end
… Keeps crashing… It’s a 1.47 mb, png, 2187x1690 pix
Why?
if you’re using an iPad 1 then theres your problem
Break your image in half and try to load both halves.
Thanks, no it’s iPad 3, I will try thanks.
The fact that the width is an odd number might also be to blame - that’s a classic problem with image loaders, also try making your image a power of 2 sized if possible.