android - Quadrant 3 positions in a quadrant 4 imageview -


i'm putting demo of indoor positioning technology android device. problem getting quadrant 3 positions system i'm using, 0,0 origin in upper right. map placed in imageview has origin in upper left (quadrant 4).

points map

naturally, when try put image on top move around according position getting, backwards on x-axis. best way display right coordinates? can transform points them, or there way somehow flip imageview origin in upper right?

you have transform coordinates yourself. not complex - mapping values 1 other, in general. if image has width of "wo" , have vo (view origin) , mo (map origin) x coordinate map mx , transformed vx = mx + wo. (mx map x coordinates have negative values, no greater wo , no less 0). transform view map, opposite: mx = vx - wo. (the vx x-coordinates not have values less 0, , @ greatest width, should result in "0" on map.)

that not cpu intensive, should fast.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -