Opposite of convertCoronaPointToAndroidPoint

On Corona Native (Android), I can use the convertCoronaPointToAndroidPoint(x,y) to convert a (x,y) in the Corona content for the Android space.

What about the opposite? I have (x,y) in the Android space and would like to have it mapped to the Corona Content. How do I do that?

I’ll ask Engineering.

Any news?

The team is pretty busy so we may need to give them more time, but I’ve re-asked them.

Rob

There isn’t a function to do that, but it is easy to figure out: translate couple points and do some simple math.  These functions might be useful:

int getContentHeightInPixels()

int getContentWidthInPixels()

int getHorizontalMarginInPixels()

int getVerticalMarginInPixels()

to help you get the reverse.

Rob

I’ll ask Engineering.

Any news?

The team is pretty busy so we may need to give them more time, but I’ve re-asked them.

Rob

There isn’t a function to do that, but it is easy to figure out: translate couple points and do some simple math.  These functions might be useful:

int getContentHeightInPixels()

int getContentWidthInPixels()

int getHorizontalMarginInPixels()

int getVerticalMarginInPixels()

to help you get the reverse.

Rob