# Using an image as a moving object in an animation

I have following animation:

Animate[
Graphics[{Translate[Rotate[Rectangle[], ψ Degree], {x, 0}],
Translate[Rotate[Rectangle[], -ψ Degree], {1.75 - x, 0}]}],
{x, 0, 1},
{ψ, 0, 90},
AnimationRunning -> False
]


For rectangles it works perfectly, but when I try to put any image instead of these rectangles, it shows me "Image is not a Graphics primitive or directive" error. How to put any image (raster-, vector- based) and transform it the way like it does with primitives?

• You can use Inset or Texture. – Kuba Jan 30 '14 at 18:36
• There are special commands for dealing with image objects such as ImageRotate. – bill s Jan 30 '14 at 18:36
• Okay, but I also need to transform my image in the way it is done with primitives :) – Bogdan Jan 30 '14 at 18:37

t = Texture@ExampleData[{"TestImage", "Lena"}];