Flip an Android Canvas -


is there easy way flip canvas in android? cant seem find allows me flip vertically 0 on y-axis bottom of phone screen instead of top. it's ok if solution isn't fast because i'm not doing computationally intense canvas.

thanks in advance.

try

canvas.scale(1, -1, width / 2, height / 2) 

see canvas.scale documentation. first 2 parameters amount scale by.


Comments

Popular posts from this blog

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -

How do I get the nth item in a queue in java? -

How to read input from STDIN in x86_64 assembly? -