ImageBoxSample/MainForm.cs

Download

imageboxsample-part2.zip

(441.84 KB | 13 August 2010 )

Second in a multi part series on creating an image viewer that can be scrolled and zoomed in C#. After part one created the initial component with auto resize, we now add scrolling support.

Donate

Contents of imageboxsample-part2.zip/ImageBoxSample/MainForm.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ImageBoxSample
{
  public partial class MainForm : Form
  {

    // ImageBox sample project
    // http://cyotek.com/article/display/creating-a-scrollable-and-zoomable-image-viewer-in-csharp-part-2

    // Preview image based on bwpx.icns - http://paularmstrongdesigns.com/projects/bwpx-icns/
    // Large preview image from http://www.crazythemes.com/colorful-abstract-widescreen-wallpapers-vol2/2153

    public MainForm()
    {
      InitializeComponent();
    }
  }
}

Files