summaryrefslogtreecommitdiff
path: root/Util.cs
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-05-18 01:34:00 +0000
committerIan C <ianc@noddybox.co.uk>2005-05-18 01:34:00 +0000
commitcac0e5a6f3baeaa2e891677c79bba00ff3c44e1a (patch)
tree79af3f1c867974c49bb0bb492daea721b6f37fc3 /Util.cs
parent81ed3c21ad7624a383a721c9509f671bd6f5ac23 (diff)
Development changes
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)
{