From 33017193d2ca0b7b18e65526f93feb2fe3bfec46 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 21 May 2005 01:28:48 +0000 Subject: Changed so that editing allows alpha to be used. Font import still not working correctly. --- BitmapChar.cs | 48 ++++++++++++++++++++---------------------------- 1 file changed, 20 insertions(+), 28 deletions(-) (limited to 'BitmapChar.cs') diff --git a/BitmapChar.cs b/BitmapChar.cs index 12d3aae..4719b33 100644 --- a/BitmapChar.cs +++ b/BitmapChar.cs @@ -34,7 +34,7 @@ namespace BitmapFontEd m_width=width; m_height=height; m_data=new Color[m_width,m_height]; - Clear(Color.Black); + Clear(Color.Empty); m_changed=false; } @@ -81,7 +81,7 @@ namespace BitmapFontEd for(int y=0;y=0 && nx=0 && ny=0 && nx=0 && ny>16,(col&0xff00)>>8,col&0xff); - } + int B=stream.ReadByte(); + int G=stream.ReadByte(); + int R=stream.ReadByte(); + int A=stream.ReadByte(); + + s[x,y]=Color.FromArgb(A,R,G,B); } } -- cgit v1.2.3