示例#1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="reticle">The reticle</param>
 /// <param name="canvas">The canvas</param>
 public ReticleDrawController(ReticleDefinition reticle, IReticleCanvas canvas)
 {
     mReticle    = reticle;
     mCanvas     = canvas;
     mTranslator = new CoordinateTranslator(reticle.Size.X, reticle.Size.Y, reticle.Zero.X, reticle.Zero.Y, canvas.Width, canvas.Height);
 }