Changeset 4654 for trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs
- Timestamp:
- 10/29/10 12:55:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs
r4646 r4654 94 94 95 95 public double ChartX(double pixelX, int width) { 96 return ChartStartPosition.X - (pixelX - PixelStartPosition.X) * 96 return ChartStartPosition.X - (pixelX - PixelStartPosition.X) * 97 97 (ChartArea.AxisX.ScaleView.ViewMaximum - ChartArea.AxisX.ScaleView.ViewMinimum) / 98 98 (width * ChartArea.Position.Width * ChartArea.InnerPlotPosition.Width / 100 / 100); 99 99 } 100 100 public double ChartY(double pixelY, int height) { 101 return ChartStartPosition.Y + (pixelY - PixelStartPosition.Y) * 101 return ChartStartPosition.Y + (pixelY - PixelStartPosition.Y) * 102 102 (ChartArea.AxisY.ScaleView.ViewMaximum - ChartArea.AxisY.ScaleView.ViewMinimum) / 103 103 (height * ChartArea.Position.Height * ChartArea.InnerPlotPosition.Height / 100 / 100); … … 138 138 #endregion 139 139 140 private void saveImageToolStripMenuItem_Click(object sender, System.EventArgs e) { 141 SaveFileDialog saveFileDialog = new SaveFileDialog(); 142 143 // Sets the current file name filter string, which determines 144 // the choices that appear in the "Save as file type" or 145 // "Files of type" box in the dialog box. 146 saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif"; 147 saveFileDialog.FilterIndex = 2; 148 saveFileDialog.RestoreDirectory = true; 149 140 private void exportChartToolStripMenuItem_Click(object sender, System.EventArgs e) { 150 141 // Set image file format 151 142 if (saveFileDialog.ShowDialog() == DialogResult.OK) {
Note: See TracChangeset
for help on using the changeset viewer.