2017-01-19 5 views
0

mathematicaの左から右に画像を移動するときに問題があります。画像を操作するmathematica

私はまた、「ルーク」として定義された画像を有する

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

、ポイントの操作有します。

ポイントを私のルーク画像に置き換えるにはどうすればよいですか?

ありがとうございます!

答えて

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