操纵图像mathematica

时间:2017-01-19 17:52:53

标签: wolfram-mathematica mathematica-8

我无法在mathematica中将图像从左向右移动。

我有操纵点,

(*Rook Movement*)
Manipulate[
  Graphics[Translate[Point[{0, 0}], {t, t2}], Axes -> True, 
  PlotRange -> {{0, 8}, {0, 8}}], {t, 0, 8}, {t2, 0, 8}]

我还有一个定义为" rook"的图像。

如何用我的车辆图像替换Point?

谢谢!

1 个答案:

答案 0 :(得分:2)

img = ExampleData[{"TestImage", "F16"}];
Manipulate[
 Graphics[Inset[img, {t, t2}], Axes -> True, 
  PlotRange -> {{0, 8}, {0, 8}}], {t, 0, 8}, {t2, 0, 8}]

enter image description here