private void DrawCellImage(Context context, FieldCell cell, TextureImage image)
 {
     float drawX = cell.GetPx() - 0.5f * image.GetWidth();
     float drawY = cell.GetPy() - 0.5f * image.GetHeight();
     context.DrawImage(image, drawX, drawY);
 }
 public ImageView(TextureImage texture)
     : base(texture.GetWidth(), texture.GetHeight())
 {
     this.texture = texture;
 }
 public void DrawScaledImage(TextureImage tex, float x, float y, float scale)
 {
     Vector2 origin = new Vector2(0.5f * tex.GetWidth(), 0.5f * tex.GetHeight());
     GetSpriteBatch(BatchMode.Sprite).Draw(tex.GetTexture(), new Vector2(x, y), null, drawColor, 0.0f, origin, scale, SpriteEffects.None, 0.0f);
 }