diff options
Diffstat (limited to 'Util.cs')
-rw-r--r-- | Util.cs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)
{
|