My zoom image canvas code get bad arguments but i dont know why?

there is my code and my aia. i follow the instructions for zoom a image using canvas but
i get this

zoom.aia (43.9 KB)

BackgroundImage is the name of a file.
ScreenWidth * 2 is a number.

What does it mean to compare a file name to a number?

because i am using this guide

So to your eyes .BackgroundImage and .Width are the same thing?

P.S. We code with our eyes, too.

Compare:


P.S. Look at the places I circled in black.

3 Likes

Some other methods

the example that give you about the links me have a dark image, the image dont load and i dont know why.i am only compile the apk but the image dont load. i am using galaxy a30s

i am change the blocks but the dragg doesnt work when i try slide using the finger. why? someone can help my error?

Maybe changing this by 'ejex' work well...

@>-->---

i change this but i cant get to move inside the space like a zoom

Not every green block is the block you seen. :joy:

Yes, I stopped looking at the first error.

I could not understand in which context that 'global index' could be less than zero...

¯ _(ツ)_/¯

@>-->---

Could you please provide me your apk file to test what is the real issue and when it occurs?

i need to zoom the backgroundimage of canvas. because i need to capture the zoom image but i dont know why dont work.