SimpleImageViewer

July 09, 2018

Reading time ~1 minute

SimpleImageViewer lets you open a multitude of supported picturefiles and shows you its metadata.


Features

  • Supported filetypes: *.jpg, *.jpeg, *.png, *.bmp, *.tiff, *.gif
  • You can assign SimpleImageViewer as your default picture viewer and open files with a doubleclick to get them shown in SimpleImageViewer.

Program screenshot:
SimpleImageViewer

Metadata window:
SimpleImageViewerMetadata


Function to get the launch arguments:

string[] args = Environment.GetCommandLineArgs();

            if (args.Length > 1 && args[1] != string.Empty)
            {              
                if (args == null || args.Length == 0)
                {
                    //program was started without any arguments
                }
                else
                {                    
                    //send the imagelocation via the arguments to the picturebox
                    pb_mainView.ImageLocation = args[1];                    
                }                
            }

Github Repository