Would Fortran be helpful in graphics processing when coding an application similar to Photoshop

Hello, I want to develop an application similar to Photoshop. Can I use C++ and Fortran together, and would Fortran help me with graphics processing tasks?

1 Like

I don’t know about C++ specifically, but there are FORTRAN bindings for SDL2 and Raylib

I don’t know how well these could work for your needs, though, but it’s just a suggestion. This sounds like a really neat project, do you have a GitHub repo for it?

I have written also a (not fully complete) Fortran binding for the libGD library for manipulating pixel- based images. It is, however, not nearly as powerful as Photoshop or GIMP. For example, there is no support for images with more than 8 bit per channel and no genetative KI functions at all.

It is just a thin compatibility layer around GDlib, so you still need some C knowledge. The advantage is that you can basically use the documentation of the C library.

I do this purely on a hobby basis so there is no professional or semi-professional support.

Maybe it would be an interesting project for some graphics enthousiast to create a Fortran binding for the GEGL library of GIMP.

I think Fortran is a great option for array-based image transformations. Yes, it can be used with C++ easily. I recommend having a nice well-designed Fortran library for image transformations, and C++ for the overall code structure / GUI.