/// <summary> /// Optimize Drawing Of The Image /// </summary> /// <param name="img">Image To Optimize</param> public static void DefaultDrawElement(Graphics.Image img) { if ((img.Position.X <= graphics.Viewport.Width) && (img.Position.Y <= graphics.Viewport.Height) && (img.Position.X + img.Size.X >= graphics.Viewport.X) && (img.Position.Y + img.Size.Y >= graphics.Viewport.Y)) { img.DefaultDraw(); } }
/// <summary> /// Draw The Mouse Image /// </summary> public static void Draw() { cursor.DefaultDraw(); }