Do not forget the NASA scientists and NASA's CIO. They are excited about your new application, and you do not want to disappoint them. You would rather work for the NASA and not the FBI or the hackers!
As they want to run the algorithm for a lot of images, first, we are going to create a new method for processing an individual bitmap. This way, we will be able to call it many times for each bitmap found in a folder:
AnalyzeSunspotsAndShowResult. It will create a
SunspotAnalyzerinstance, run the algorithm, and show the resulting bitmap in a picturebox control. It receives a
Bitmapas a parameter: ...