About five or six years ago I did this using imagemagick. It didn’t occur to me at the time that GDI would be a good idea.

I’ll look for the code, but it might just be at that customers.