コード例 #1
0
        private void Open()
        {
            string imageLocation = FileBrowser.BrowseForImageFiles();

            if (string.IsNullOrWhiteSpace(imageLocation))
            {
                ImageLocation      = string.Empty;
                BackgroundLocation = string.Empty;
                return;
            }

            string bgImageLocation = FileBrowser.BrowseForImageFiles();

            if (string.IsNullOrWhiteSpace(bgImageLocation))
            {
                ImageLocation      = string.Empty;
                BackgroundLocation = string.Empty;
                return;
            }

            ImageLocation      = imageLocation;
            BackgroundLocation = bgImageLocation;

            ProcessFrame();
        }
コード例 #2
0
        private void OpenImage()
        {
            string image = FileBrowser.BrowseForImageFiles();

            if (string.IsNullOrWhiteSpace(image))
            {
                return;
            }

            MainImage = new Image <Gray, byte>(image);
        }