예제 #1
0
        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");
            }
        }
예제 #2
0
 public BitmapInfo(EditableBitmap bmp, Graphics gfx)
 {
     EditableBitmap = bmp;
     Graphics = gfx;
 }