切割和翻转图片的方法

    技术2022-05-20  41

    drawRegion(Image src, int x_src, int y_src, int width, int height, int transform, int x_dest, int y_dest, int anchor)

    参数解释

     

    Image src, 图片

    int x_src, 从这个图片的x坐标开始截取

    int y_src, int width, 截取宽度 int height, int transform, 旋转方式(0:不旋转,1... 一直到7,你可以自己试下) int x_dest, 画到屏幕的位置的x坐标 int y_dest, int anchor Graphics.LEFT|Graphics.TOP


    最新回复(0)