internal static byte[] GetBclim(string path, char fc) { byte[] byteArray = File.ReadAllBytes(path); using (Stream bitmapStream = new MemoryStream(byteArray)) // Open the file, even if it is in use. { Image img = Image.FromStream(bitmapStream); return(Bclim.ImgtoBclim(img, fc)); } }