O'Reilly logo

Instant Silverlight 5 Animation by Nick Polyak

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

ImageProcessingLibrary

We also use a project called ImageProcessingLibrary for generating moving images. It consists of several utility classes facilitating changing and retrieving colors:

  • DoubleColor is a central class within the project. It contains information about R, G, B, and A bytes of a color using double precision variables (instead of bytes) to store them. Having these values stored as doubles makes it easier to manipulate them. The class also provides conversion functions between itself and the System.Windows.Media.Color class. It also provides a function to convert an object of the DoubleColor type to int.
  • The ColorUtils class provides a bunch of extension methods facilitating changing colors (adding two colors, multiplying a color ...

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