This seems like a dumb question, but I couldn’t see any way to do this using methods in the Drawable class. Then I thought maybe I’d have to flip the Canvas in some way.. still couldn’t find a suitable method.
I just need to “flip” a Drawable on it’s y-axis.. the center y preferably. How can I do this?
From a 10k ft level, you want to create a new bitmap and specify a transform matrix to flip the bitmap.
This may be a bit overkill, but here is a small sample application that illustrates how to do this. As written, the transform matrix prescale of (-1.0f, 1.0f) flips the image in the x direction, a prescale of (1.0f, -1.0f) would flip it in the y direction.