summaryrefslogtreecommitdiff
path: root/Util.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Util.cs')
-rw-r--r--Util.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Util.cs b/Util.cs
index c7a6b0e..bd9b414 100644
--- a/Util.cs
+++ b/Util.cs
@@ -21,6 +21,7 @@ using System;
using System.Windows.Forms;
using System.Text;
using System.IO;
+using System.Drawing;
namespace BitmapFontEd
{
@@ -52,6 +53,10 @@ namespace BitmapFontEd
MessageBoxButtons.OK,MessageBoxIcon.Information);
}
+ public static bool IsBlack(Color c)
+ {
+ return c.R==0 && c.G==0 && c.B==0;
+ }
public static uint ReadUint(Stream str)
{