Exemple #1
0
        private void menuFileOpen_Click(object sender, System.EventArgs e)
        {
            //First we obtain the filename of the image we want to open
            System.String strLoadResult = AccusoftOpenFile();

            //we check first to make sure the file is valid
            if (strLoadResult.Length != 0)
            {
                //If it is valid, we set our internal image filename equal to it
                strCurrentImage = strLoadResult;
            }

            //now we load the image
            ReloadImage();

            //refresh the view
            imageXView1.Refresh();
        }