private void imageView1_OnItemClick(object sender, TileItemEventArgs e)
        {
            try
            {
                if (e.Item == null)
                {
                    return;
                }

                TileImageInfo imageInfo = e.Item.Tag as TileImageInfo;

                if (imageInfo == null)
                {
                    return;
                }

                if (imageInfo.MediaType != "图像")
                {
                    MessageBox.Show("音视频不能进行处理。", "提示");
                    return;
                }

                imageEditor1.Image = ImageEx.LoadFile(imageInfo.File);
            }
            catch (Exception ex)
            {
                MsgBox.ShowException(ex, this);
            }
        }
Beispiel #2
0
        public void LoadImage(string file)
        {
            Image img = ImageEx.LoadFile(file);

            Image = img;
        }