public static BaseImage LoadImage(BaseScreen screen, string fileName, int transColor) { BaseImage result = null; try { BaseImage image = screen.CreateImage(); Stream stm = LoadStream(fileName); if (stm != null) { try { image.LoadFromStream(stm, transColor); result = image; } finally { stm.Close(); } } } catch (IOException ex) { Logger.Write("ResourceManager.loadImage(" + fileName + "): " + ex.Message); } return(result); }