Exemplo n.º 1
0
 bool LoadGFX(string filename)
 {
     try
     {
         return(gfx.Open(filename, ref sprite));
     }
     catch (System.Exception ex)
     {
         LaunchError(ex.Message);
         return(false);
     }
 }
Exemplo n.º 2
0
 public void LoadGFX(string filename)
 {
     source.Open(filename, ref bmp);
     count       = (byte)(bmp.Width / 16 / source.Resolution);
     framesCount = (byte)(bmp.Height / 16 / source.Resolution - 1);
 }