private void LoadBitmap() { if (string.IsNullOrEmpty(_BitmapFileName)) { _EditableBitmap = null; RefreshMyBitmapImage(); return; } if (File.Exists(_BitmapFileName)) { try { using (Bitmap bitmap = new Bitmap(_BitmapFileName)) { _EditableBitmap = new EditableBitmap(bitmap, System.Drawing.Imaging.PixelFormat.Format24bppRgb); _FloodFiller.Bitmap = _EditableBitmap; FillAllIO(); RefreshMyBitmapImage(); } } catch { } } else { System.Windows.MessageBox.Show("Bestand " + _BitmapFileName + " niet gevonden.", "Bitmap niet gevonden"); } }
public BitmapInfo(EditableBitmap bmp, Graphics gfx) { EditableBitmap = bmp; Graphics = gfx; }