The advantage of a plugin is that one you register the type with UseGIFImageDecoder(), you can use LoadImage and CatchImage to get the image just like the image formats already supported.Kwai chang caine wrote:When i see all this jobs, very wonderfull, i not understand the difference between a full plugin and this reader of gif.
The advantage of code that doesn't use the plugin system is that you can also support for example the loading of images with multiple frames while the PureBasic procedures aren't designed for that.
I took me a little while to figure out how things are working but to create a decoder, you don't have to implement a lot of procedures.Kwai chang caine wrote:Is it very difficult to start from this existing big codes for create this plugin ???
I tried to create one for OSX today http://www.purebasic.fr/english/viewtop ... 19&t=66457 and it seems to work.
It should be equally difficult or easy to create a plugin for Windows or Linux.