Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/05/11 20:11:18 (13 years ago)
Author:
abeham
Message:

#1611

  • committed first version of a slightly more advanced export dialog
  • it's possible to specify image resolution and size directly, as well as change axis titles and chart title
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs

    r5445 r6640  
    2828namespace HeuristicLab.Visualization.ChartControlsExtensions {
    2929  public partial class EnhancedChart : Chart {
     30    private ImageExportDialog exportDialog;
     31
    3032    public EnhancedChart()
    3133      : base() {
    3234      InitializeComponent();
     35      exportDialog = new ImageExportDialog(this);
    3336      EnableDoubleClickResetsZoom = true;
    3437      EnableMiddleClickPanning = true;
     
    138141    #endregion
    139142
    140     private void exportChartToolStripMenuItem_Click(object sender, System.EventArgs e) {
     143    private void exportChartToolStripMenuItem_Click(object sender, EventArgs e) {
    141144      // Set image file format
    142145      if (saveFileDialog.ShowDialog() == DialogResult.OK) {
     
    162165    }
    163166
    164     private void copyImageToClipboardBitmapToolStripMenuItem_Click(object sender, System.EventArgs e) {
     167    private void exportToolStripMenuItem_Click(object sender, EventArgs e) {
     168      exportDialog.ShowDialog();
     169    }
     170
     171    private void copyImageToClipboardBitmapToolStripMenuItem_Click(object sender, EventArgs e) {
    165172      System.IO.MemoryStream stream = new System.IO.MemoryStream();
    166173      SaveImage(stream, System.Drawing.Imaging.ImageFormat.Bmp);
Note: See TracChangeset for help on using the changeset viewer.