[SOLVED] Custom image rotation point

hello,

i have a video running in a window and i am tracking a certain point in it (center of a object).
i want to attach an image (position) to this tracked point and need it to rotate (2D only) accordingly. Everything seems ok but the image origin is in the upper left corner, so position and rotation are done relative to this point.

How can i define the origin in the center of the image ?

thanks a lot.

1 Like

This?

http://www.openframeworks.cc/documentation/graphics/ofImage.html#show_setAnchorPoint

1 Like

Yep !

This is exactly what i was looking for !
This solved my problem.

thanks a bunch