Reader small image

You're reading from  Instant Silverlight 5 Animation

Product typeBook
Published inJan 2013
Reading LevelIntermediate
PublisherPackt
ISBN-139781849687140
Edition1st Edition
Languages
Right arrow
Author (1)
Nick Polyak
Nick Polyak
author image
Nick Polyak

Nick Polyak is a technology enthusiast who enjoys building software and learning new technologies. For the past six years, Nick worked primarily on Silverlight/WPF projects, and prior to that he worked with C++ and Java. Nick is looking forward to harnessing the new capabilities coming with HTML5 and modern JavaScript libraries. Nick got his Ph.D. from Rensselaer Polytechnic Institute in 1998. He did his research in Wavelet based image processing and published a number of papers on the subject. More recently Nick published several articles on codeproject.com some of which (a Prism tutorial and an article on MVVM) became quite popular. Nick is the owner of the AWebPros.com consulting company.
Read more about Nick Polyak

Right arrow

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 by a scalar, blending two colors, and so on).

  • The ColorMap class provides a way to set a map between the colors we want to use and real numbers from within the 0 to 1 range.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Instant Silverlight 5 Animation
Published in: Jan 2013Publisher: PacktISBN-13: 9781849687140

Author (1)

author image
Nick Polyak

Nick Polyak is a technology enthusiast who enjoys building software and learning new technologies. For the past six years, Nick worked primarily on Silverlight/WPF projects, and prior to that he worked with C++ and Java. Nick is looking forward to harnessing the new capabilities coming with HTML5 and modern JavaScript libraries. Nick got his Ph.D. from Rensselaer Polytechnic Institute in 1998. He did his research in Wavelet based image processing and published a number of papers on the subject. More recently Nick published several articles on codeproject.com some of which (a Prism tutorial and an article on MVVM) became quite popular. Nick is the owner of the AWebPros.com consulting company.
Read more about Nick Polyak