Line Colors on WPF Alpha
Posted: Mon Mar 10, 2008 6:10 pm
When using the following code:
The colors are displayed far darker then they should.
For example:
Aqua on the Rectangle is the proper color while the Line will be darker so much darker that it is no longer the same color.
I believe this is caused by some sort of extra values that can be set on the line but I do not know what those values are. I know in the Win32 version there were some values that needed to be set in the Pen Tool to get the colors to show correctly.
Furthermore I have discovered that FastLine shows color correctly and I attribute this to it simply lacking the functions that Line has which causes the darker color.
Any ideas on how to improve the color of Line would be greatly appreciated.
Regards,
Michael Hohlios
Code: Select all
Line newLine = new Line()
{
Color = input.Color,
};
For example:
Code: Select all
Rectangle r = new Rectangle()
{
Background = new SolidColorBrush(Colors.Cyan)
}
Line newLine = new Line()
{
Color = Colors.Cyan,
};
I believe this is caused by some sort of extra values that can be set on the line but I do not know what those values are. I know in the Win32 version there were some values that needed to be set in the Pen Tool to get the colors to show correctly.
Furthermore I have discovered that FastLine shows color correctly and I attribute this to it simply lacking the functions that Line has which causes the darker color.
Any ideas on how to improve the color of Line would be greatly appreciated.
Regards,
Michael Hohlios