예제 #1
0
 /// <summary>
 /// This simply moves the real world rectangle but by a scaled, screen based
 /// value e.g. 10 pixels to the right. The image is shown in the same place on
 /// the screen but the image scrolls.
 /// </summary>
 /// <param name="Vector">Vector to scroll / move by.</param>
 public void ScrollScreen(C2DVector Vector)
 {
     RealRect.Move(new C2DVector(Vector.i / Scale.x, Vector.j / Scale.y));
 }
예제 #2
0
 /// <summary>
 /// This simply moves the real world rectangle.
 /// </summary>
 /// <param name="Vector">Vector to move / scroll by</param>
 public void ScrollReal(C2DVector Vector)
 {
     RealRect.Move(Vector);
 }