Search:

Type: Posts; User: hwoarang69

Search: Search took 0.20 seconds.

  1. Replies
    2
    Views
    1,768

    Re: how to flip image vertically

    ah ic.
    i just want to make sure if i have the step right.

    AffineTransform tx = AffineTransform.getScaleInstance(1, -1);

    tx.translate(0, 0); //translate to center

    //roate image here...
  2. Replies
    2
    Views
    1,768

    how to flip image vertically

    lets say i am print a image on screen. with (x1,y1,x2,y2,sx1,xy1,sx2,sy2)

    g.drawImage(player_image, x, y, x+width, y+height
    0, 0, 30, 20 ,Sprite_Sheet.m1);

    so how would i flip this image...
Results 1 to 2 of 2