public static Bitmap Load(Bitmap555Type type, string filename, ushort width, ushort height, uint offset) { switch (type) { case Bitmap555Type.Isometric: return LoadIsometricBitmap(filename, width, height, offset); case Bitmap555Type.PlainCompressed256: case Bitmap555Type.PlainCompressed257: case Bitmap555Type.PlainCompressed276: return LoadPlainCompressedBitmap(filename, width, height, offset); case Bitmap555Type.Plain: case Bitmap555Type.Plain1: case Bitmap555Type.Plain10: case Bitmap555Type.Plain12: case Bitmap555Type.Plain13: return LoadPlainBitmap(filename, width, height, offset); default: throw new NotSupportedException("Unknown image type: " + ((uint)type).ToString("X")); } }
public static Bitmap Load(Bitmap555Type type, string filename, ushort width, ushort height, uint offset) { switch (type) { case Bitmap555Type.Isometric: return(LoadIsometricBitmap(filename, width, height, offset)); case Bitmap555Type.PlainCompressed256: case Bitmap555Type.PlainCompressed257: case Bitmap555Type.PlainCompressed276: return(LoadPlainCompressedBitmap(filename, width, height, offset)); case Bitmap555Type.Plain: case Bitmap555Type.Plain1: case Bitmap555Type.Plain10: case Bitmap555Type.Plain12: case Bitmap555Type.Plain13: return(LoadPlainBitmap(filename, width, height, offset)); default: throw new NotSupportedException("Unknown image type: " + ((uint)type).ToString("X")); } }