public void UpdateDPI(double newDPI, double newWidth, double newHeight) { //If a graph has been loaded, update it based on the new DPI if (currentGraph != null) { currentGraph.UpdateDPI(newDPI, newWidth, newHeight); } }