As mentioned earlier, object-oriented code is one of the most valuable friends of multithreaded applications. We want the
ThumbnailBrightnessAdjuster class to be simple, self-contained, and efficient. Achieving this will help us focus on parallelizing the requests and not on threading problems.
Now, we are going to add some methods to the
ThumbnailBrightnessAdjuster class to complete the adjusted high quality thumbnail generation algorithm:
public ThumbnailBrightnessAdjuster(string parsImageFileName, Size paroThumbnailSize, double pariBrightnessAdjustment) ...