public LoadBitmap(int frameNumber, string filePath) { savedBitmap = new Bitmap(filePath + frameNumber + ".bmp"); streamBitmap = new MemoryStream(); savedBitmap.Save(streamBitmap, ImageFormat.Bmp); savedBitmap.Dispose(); BitmapFromStream = new Bitmap(streamBitmap); FileOperation.Remove(filePath + frameNumber + ".bmp"); }
public void RemoveFile(int actualFrame) { FileOperation.Remove(temporaryFilesPath + actualFrame + ".bmp"); }