# Help in Rotate Image in JAVA2D

**URL:** <https://discourse.processing.org/t/help-in-rotate-image-in-java2d/33852>\
**Category:** Electronics (Arduino, etc.)\
**Tags:** homework\
**Created:** [December 1, 2021, 9:10am UTC](https://discourse.processing.org/t/help-in-rotate-image-in-java2d/33852 "2021-12-01T09:10:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [December 1, 2021, 2:42pm UTC](https://discourse.processing.org/t/help-in-rotate-image-in-java2d/33852/4 "2021-12-01T14:42:51Z")

</div>

Hello,

I used this image because it was offset:  
[https://www.pngall.com/wp-content/uploads/6/Vector-Tribal-Arrow-PNG-Image-HD.png](https://www.pngall.com/wp-content/uploads/6/Vector-Tribal-Arrow-PNG-Image-HD.png)

Code to peruse:

```auto
  push(); 
  rotate(frameCount*TAU/360);
  noFill();
  translate(0, -25); // Estimated (visually) that it was about 1/4 of height
  rect(0, 0, 200, 100); // To see image size
  image(img, 0, 0);
  pop();

```

![test.mov](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/e7a3d6bf6f97238fb51cc9d519c730d89276f80f.gif)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/help-in-rotate-image-in-java2d/33852)._
