Beispiel #1
0
		internal void LoadImageHelper( ImageArray loadThis )
		{
            //if( images != null )
            //{
            //    foreach( Image img in images )
            //    {
            //        img.Dispose();
            //    }
				
            //    images.Clear();
            //    images = null;
            //}

            //images = loadThis;

            if (opHelper != null)
                opHelper.Dispose();

            opHelper = new OpHelper(loadThis, this);
            originalBitmapArray = loadThis;
            

            if (this.InvokeRequired)
            {
                // Load new Image                
                //picBoxMain.Image = images[0];
                picBoxMain.Image = opHelper.GetOperatedBitmap(opHelper.SelectedIndex);
                //originalBitmap = (Bitmap)picBoxMain.Image;
                //currentBitmap = (Bitmap)picBoxMain.Image.Clone();

                // Make the size of the picturebox equal to that of the image
                this.Invoke(new SimpleDelegate(SetPicBoxSize));
            }
            else
            {
                // Load new Image
                //picBoxMain.Image = images[0];
                picBoxMain.Image = opHelper.GetOperatedBitmap(opHelper.SelectedIndex);
                //originalBitmap = (Bitmap)picBoxMain.Image;
                //currentBitmap = (Bitmap)picBoxMain.Image.Clone();

                // Make the size of the picturebox equal to that of the image
                SetPicBoxSize();
            }

            opHelper.SliceProccesed+=new SliceProcessedEventHandler(opHelper_SliceProccesed);
            
		}
Beispiel #2
0
		internal void LoadImageHelper( Image loadThis )
		{
            ImageArray newLoadThis = new ImageArray();
            newLoadThis.Add(loadThis);
            LoadImageHelper(newLoadThis);            
		}