How to mirror an image file? (2.2+)

后端 未结 2 1080
花落未央
花落未央 2020-12-11 02:34

I have a PNG file that I want to use for an overlay - however, this file has to be mirrored (and rotated by 180°), but in order to save space, I don\'t want to place the mir

2条回答
  •  不知归路
    2020-12-11 03:23

    You can simply use View.setScaleX()

    For example

     public void mirrorView(View v){
        v.setScaleX(-1.0f);
    }
    

提交回复
热议问题