hOLOlu LCD

C# Kayan Yazı Denemesi
This commit is contained in:
Mustafa ÖZKAYA
2015-03-10 05:29:32 +02:00
parent 72da4dd173
commit 89e1f8d694
98 changed files with 9450 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace TextDesignerCSLibrary
{
/// <summary>
/// Simple helper class to use mask color
/// </summary>
public class MaskColor
{
/// <summary>
/// Method to return a primary red color to be used as mask
/// </summary>
public static System.Drawing.Color Red
{
get
{
return System.Drawing.Color.FromArgb(0xFF, 0, 0);
}
}
/// <summary>
/// Method to return a primary green color to be used as mask
/// </summary>
public static System.Drawing.Color Green
{
get
{
return System.Drawing.Color.FromArgb(0, 0xFF, 0);
}
}
/// <summary>
/// Method to return a primary blue color to be used as mask
/// </summary>
public static System.Drawing.Color Blue
{
get
{
return System.Drawing.Color.FromArgb(0, 0, 0xFF);
}
}
/// <summary>
/// Method to compare 2 GDI+ color
/// </summary>
/// <param name="clr1">is 1st color</param>
/// <param name="clr2">is 2nd color</param>
/// <returns>true if equal</returns>
public static bool IsEqual(System.Drawing.Color clr1, System.Drawing.Color clr2)
{
if (clr1.R == clr2.R && clr1.G == clr2.G && clr1.B == clr2.B)
return true;
return false;
}
}
}