Porting old GIMP plug-ins can be fun
December 15, 2007 at 11:32 am | In C#, GIMP | Leave a CommentI just ported an older GIMP plug-in to GIMP#. It’s the Sky plug-in which is part of the PhyModMedia plug-ins. First result:
Now I only have to clean-up the UI a bit, optimize the code somewhat and release it as part of GIMP# 0.14.
Btw, this plug-in was chosen as a result of this poll which asked for your favorite abandoned GIMP plug-in. You can still vote for yours!
F# and GIMP#
December 2, 2007 at 10:04 pm | In GIMP, Programming | 4 CommentsI almost got my first F# plug-in running on GIMP#. It took me some time to get used to the syntax even with a background in functional languages like Lisp and Scheme. Only thing left to figure out is how I can override a C# function that returns an IEnumerable. What I’ve got sofar is:
override x.ListProcedures() : seq<Procedure> =
let procedure = new Procedure()
procedure.MenuPath <- “<Image>/Filters/Generic”
// And now what?
The C# signature of this routine is
protected abstract IEnumerable<Procedure> ListProcedures() ;
Hope to find an answer pretty soon.
Update 3 December 2007: seems that returning an IEnumerable is quite easy (many thanks to Robert Pickering):
[procedure] :> seq<Procedure>
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.
