public DocumentView Open(string fileName) { DocumentView view = new ImageEditView(); view.Load(fileName); return(view); }
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); } } }
public DocumentView New() { DocumentView view = new ImageEditView(); return(view.NewDocument() ? view : null); }