O'Reilly logo

C# 2008 and 2005 Threaded Programming: Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - Defining a new method to create an algorithm instance

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:

  1. Stay in the project, SunspotsAnalyzer.
  2. Add the following procedure in the form's file, AnalyzeSunspotsAndShowResult. It will create a SunspotAnalyzer instance, run the algorithm, and show the resulting bitmap in a picturebox control. It receives a Bitmap as a parameter: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required