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

Understanding the pixels' color compositions

The infrared bitmap portrait does not have an exact blue (red = 0; green = 0; blue = 255) color for an old star. There is a complex technique used to determine a star's age according to color ranges. This is easy to understand for human beings, but difficult for computers.

However, it is simple to generate an algorithm obtaining the following three components of a Color (System.Drawing.Color) instance:

  • Hue: Obtained by the GetHue() method
  • Saturation: Obtained by the GetSaturation() method (from 0.01 to 1.00)
  • Brightness: Obtained by the GetBrightness() method (from 0.01 to 1.00)

Using these color components, we can apply the following rules to determine whether a pixel in the infrared bitmap portrait corresponds ...

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