On Thursday, 9 July 2015 at 23:44:06 UTC, Vladimir Panteleev wrote:
On Tuesday, 7 July 2015 at 03:46:55 UTC, Rikki Cattermole wrote:
write("filename", myImage.asFreeImage().toBytes("png")); //

Um, does this line mean that code to support ALL image formats in the library is going to end up in the executable? Selecting which image formats are supported by the application should be an explicit choice done by the application code.

I'm not using FreeImage for loading/exporting of images. It was an example for another library to manage it. Instead of purely D one. You will be free to use any you wish as long as you can import it. Currently there is no big bad manager for registering of image types because of M:N problem that is registering templated functions while not knowing the template arguments at compile time.

Reply via email to