Gimp-Forum.net
Late binding / COM for opening an image into GIMP? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: Late binding / COM for opening an image into GIMP? (/Thread-Late-binding-COM-for-opening-an-image-into-GIMP)



Late binding / COM for opening an image into GIMP? - i73 - 08-04-2017

Hey guys, I'm looking for a way to use .net to open up a application in Gimp,

Something like:


Code:
dynamic app= Activator.CreateInstance(Type.GetTypeFromProgID("Gimp.Application", true));
app.Load("D:\a.png");



RE: Late binding / COM for opening an image into GIMP? - Ofnuts - 08-04-2017

AFAIK nothing Windows specific to start Gimp. If you want to use Gimp from some other application, start it like an external application.


RE: Late binding / COM for opening an image into GIMP? - i73 - 08-08-2017

(08-04-2017, 08:09 PM)Ofnuts Wrote: AFAIK nothing Windows specific to start Gimp. If you want to use Gimp from some other application, start it like an external application.

Do you know if it hasĀ a CLI argument to pass it and load an image once I've opened it? Thanks!


RE: Late binding / COM for opening an image into GIMP? - Kevin - 08-08-2017

The GIMP command line options are detailed here: https://www.gimp.org/man/gimp.html