public void InitFilters() { _filter = new ImageEditingDocument(SourcePath); _filter.t = type.img; _filter.path = this.SourcePath; _filter.filename = Path.GetFileName(SourcePath); _filter.parent = this; }
public System.Drawing.Image InitFilters() { System.Drawing.Image i; using (var bmpTemp = new System.Drawing.Bitmap(SourcePath)) { i = new System.Drawing.Bitmap(bmpTemp); } _filters = new ImageEditingDocument(SourcePath); _filters.t = type.img; _filters.path = this.SourcePath; _filters.filename = Path.GetFileName(SourcePath); _filters.parent = this; return(i); }