From 0f11f8e2d536e06b1b1175388752ede4db716117 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 15 May 2005 01:04:53 +0000 Subject: Initial working editor and character selection --- BitmapChar.cs | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 106 insertions(+), 2 deletions(-) (limited to 'BitmapChar.cs') diff --git a/BitmapChar.cs b/BitmapChar.cs index 910a4b2..f902d7c 100644 --- a/BitmapChar.cs +++ b/BitmapChar.cs @@ -20,6 +20,7 @@ using System; using System.Drawing; using System.IO; +using System.Collections; namespace BitmapFontEd { @@ -33,9 +34,11 @@ namespace BitmapFontEd m_width=width; m_height=height; m_data=new Color[m_width,m_height]; + Clear(Color.Black); + m_changed=false; } - public BitmapChar() : this(8,8) + public BitmapChar() : this(16,16) { } @@ -48,6 +51,8 @@ namespace BitmapFontEd for(int x=0;x + /// Describes a list of bitmap characters + /// + public class BitmapCharList : IEnumerable + { + private const int CHARS=96; + + public BitmapCharList() + { + m_list=new BitmapChar[CHARS]; + + for(int f=0;f