Click here to Skip to main content
13,090,418 members (53,207 online)
Click here to Skip to main content
Add your own
alternative version


22 bookmarked
Posted 19 Jun 2005

Album Surfer

, 19 Jun 2005
Rate this:
Please Sign up or sign in to vote.
An app for easy image scrolling.


On numerous occasions the Code Project website has provided ideas and examples of techniques to solve a problem that otherwise I was having difficulty with. To all those who operate and contribute to Code Project I say thank you.

As a way of possibly giving back a little I offer this professionally complete application for surfing through image collections, also known as albums. This application combines many ideas found else where on Code Project site but it also includes my view of what constitutes the minimum aspects of a professional application. I fully understand that this is a subjective concept and the beauty is in the mind of the beholder. Software development is a combination of a set of finite rules and creativity. The creativity provides many solutions to the same problem. After years of experience in the industry I believe there are characteristics that permit one to label a solution as a "good" one.

Characteristics of a professional application

  1. It must provide the user an intuitive interface and perform the task the user needs to do in an easy to understand fashion.
  2. It must be complete, that is it would include a polished looking splash screen, an easy to use parameter modification interface, an informative About Form and a complete help implementation.
  3. From a development point of view it should be consistent in style and be written and documented in such a way that another developer can understand and maintain it. This would be without spending months to figure it out.

That's my view of software beauty and I am sticking to it.

This application includes all the items listed above. After using it for a month or so it is exactly what I wanted, hopefully you will find it useful. It employs all the natural image types that .NET 1.1 knows about and really performs nicely given the amount of code written to solve the task.

A couple of functions have to reach outside of .NET to provide the features that were needed and you will see their references in the Win32dll class.

As a C# application all XML comments are complete and I have provided an IDE macro file that provides formatting of function signatures as they are in the example code. The output of an NDoc execution is also provided as an example.

Feature list

Basically when the user selects a graphics file to view, this application checks the directory of which it is a member and makes a list of all other graphics files in that directory for selecting through.

The project incorporates the following features:

  1. Ability to select the image, zoom and scroll with key presses only. I have become partial to the mouse wheel for image selection.
  2. Drag and drop a new file to the form to switch directories and file lists.
  3. Select an area from any displayed zoomed image and save as a new file in any supported image format including selecting JPEG quality.
  4. Persistence of user selections for the next execution. Use of registry or local XML file is a developer option.
  5. Display the image properties.
  6. A complete HTML help project to support the application.
  7. A full deployment project.

Author background

I have been in the software profession for many years which includes stints as a college instructor and as a group manager. As you might assume I have formed some strong opinions about what represents a job well done. This project exhibits what I think is the best in style and form. Over the years I have on many occasions reviewed other people's code searching for style and techniques that can make my own code better. I have come to understand that there is great elegance in simplicity. In fact, sometimes the hardest thing you can ever do is factor a problem into its constituent parts to provide the simplest yet complete solution.

I am an unabashed fan of Hungarian notation and try to structure a line of code so that just viewing it, without the aid of an IDE to tell scope type and function, is adequate to understand what it is attempting to do.

I use the major parts of this application as the basis for every new application I write. Why reinvent the wheel?

Points of interest

The whole project from the beginning to end took about two months figuring out this and that. Hopefully you will save some time if you find it useful.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

You may also be interested in...

Comments and Discussions

Generalthanks Pin
pascualini28-Jun-06 14:00
memberpascualini28-Jun-06 14:00 
GeneralPossible option: Graphics.InterpolationMode Pin
FTrader16-Sep-05 20:27
memberFTrader16-Sep-05 20:27 
GeneralCorrect Links Pin
Zephyrer20-Jun-05 15:30
memberZephyrer20-Jun-05 15:30 
GeneralRe: Correct Links Pin
Michael Dillmann20-Jun-05 23:55
memberMichael Dillmann20-Jun-05 23:55 
GeneralRe: Correct Links Pin
Mel Shaline21-Jun-05 14:48
memberMel Shaline21-Jun-05 14:48 
GeneralAll links defective Pin
fwsouthern19-Jun-05 18:24
memberfwsouthern19-Jun-05 18:24 
Both image and file links are defective -- please correct.
GeneralNot able to view the Image Pin
Gaurang Desai19-Jun-05 18:10
memberGaurang Desai19-Jun-05 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170813.1 | Last Updated 19 Jun 2005
Article Copyright 2005 by Mel Shaline
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid