我试图在X轴上翻转图像,然后像缓冲图像一样使用它。
这是我想要的一个例子。
bulba_left = pmdchar_base.getSubimage(296, 14, 48, 55);
bulba_down = pmdchar_base.getSubimage(4, 14, 48, 55);
bulba_right = left(Some type of magical function here to flip an image )
它会使用图像“bulba_left”作为一种基础,然后将其翻转并将其用作“bulba_right”
然后我将能够以与缓冲图像相同的方式使用图像。 前
d.drawImage(character,xcord,ycord,this);
其中character是缓冲图像。