Click here to Skip to main content
11,581,186 members (61,480 online)
Click here to Skip to main content
Add your own
alternative version

Another Screensaver with WPF

, 27 Jan 2012 CDDL 38.6K 3.5K 60
Lessons learnt from writing a screensaver with WPF
namespace RZWScreenSaver.Graphics.ColorSpaces{
    public abstract class ColorSpace<T> where T : struct{
        protected ColorSpace(int width, int height, int dataPerPixel){
            Width = width;
            Height = height;
            DataPerPixel = dataPerPixel;
            data = new T[Area * DataPerPixel];
        public int Area{
            get { return Width*Height; }
        public T[] Data{
            get { return data; }
        public int Width { get; private set; }
        public int Height { get; private set; }
        protected int DataPerPixel { get; private set; }
        readonly T[] data;

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)


About the Author

Ruxo Zheng
Technical Lead
Thailand Thailand
C/C++ and C# programmer.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150603.1 | Last Updated 27 Jan 2012
Article Copyright 2009 by Ruxo Zheng
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid