/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); // TODO: Add your drawing code here spriteBatch.Begin(); try { paintImage.Draw(spriteBatch); spriteBatch.DrawString(defaultFont, paintBrush.brushColor.A.ToString(), new Vector2(0, 0), Color.Black); toolBar.Draw(spriteBatch); paintPallet.Draw(spriteBatch); } catch (Exception e) { OutputText("Error drawing: " + e.Message); } spriteBatch.End(); base.Draw(gameTime); }