Inheritance: Sphere.Plugins.Views.ImageView
Exemplo n.º 1
0
        public DocumentView Open(string fileName)
        {
            DocumentView view = new ImageEditView();

            view.Load(fileName);
            return(view);
        }
Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 3
0
        public DocumentView New()
        {
            DocumentView view = new ImageEditView();

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