상속: Sphere.Plugins.Views.ImageView
예제 #1
0
        public DocumentView Open(string fileName)
        {
            DocumentView view = new ImageEditView();

            view.Load(fileName);
            return(view);
        }
예제 #2
0
 private static void menuRescale_Click(object sender, EventArgs e)
 {
     using (SizeForm form = new SizeForm())
     {
         ImageEditView editor = PluginManager.Core.ActiveDocument as ImageEditView;
         form.WidthSize  = editor.Content.Width;
         form.HeightSize = editor.Content.Height;
         if (form.ShowDialog() == DialogResult.OK)
         {
             editor.Rescale(form.WidthSize, form.HeightSize, form.Mode);
         }
     }
 }
예제 #3
0
        public DocumentView New()
        {
            DocumentView view = new ImageEditView();

            return(view.NewDocument() ? view : null);
        }