private void PrepareData() { originalForm = BitmapUtils.LoadBitmap(path); Bitmap smallForm = BitmapUtils.Resize(originalForm, smallImageWidth, originalForm.Height * smallImageWidth / originalForm.Width); BWThreshold = BitmapUtils.GetMinMaxMiddleColorThreshold(smallForm); CreateSmallExpandedBW(smallForm); largeForm = BitmapUtils.Resize(originalForm, largeImageWidth, originalForm.Height * largeImageWidth / originalForm.Width); }