Exemplo n.º 1
0
        // Click on Load image
        public void ClickLoad(PictureBox picPreview)
        {
            iHaveException = false;
            // Get the image from the disk
            try
            {
                // call function for get the image from the disk
                workImage = iLoad.LoadImage();


                // If image is not null, put it in the form
                display.putImage(picPreview, workImage);

                // Save the non filtered image - just in case we need it in a next release
                originalBitmap = workImage;
            }
            catch (Exception e)
            {
                // If there is an exception in the filter, do nothing
                Console.WriteLine("Exception : ", e);
                iHaveException = true;
            }
        }