C# public partial struct methods for more System.Windows.Media.Color
Posted
by
dr d b karron
on Stack Overflow
See other posts from Stack Overflow
or by dr d b karron
Published on 2010-12-27T03:31:38Z
Indexed on
2010/12/27
3:54 UTC
Read the original article
Hit count: 251
How can I put in additional methods for manipulating color ? Best would be to overload the struct System.Windows.Media.Color. It is NOT a class (in c#).
Now i'm tinkering with putting (in the same file for testing or must i put it in a different file) an namespace (Silverlight Application36 or System.Windows.Media ?) and a partial struct Color Normalize (double R, ...).
I should see MyColor.Normalize() start being recognized by intellisense ?
I'm not. I'm looking to put in a suite of overloaded color manipulations using floating and double numbers instead of unsigned byte integers.
Any hints while I wack at it ?
Cheers!
dr.K
© Stack Overflow or respective owner