Why is there LoadPixmap and LoadPixmapPNG?

BlitzMax Forums/BlitzMax Beginners Area/Why is there LoadPixmap and LoadPixmapPNG?

It's trying to cast the URL object to a pixmap, if it succeeds, the image is generated from the pixmap, otherwise the URL is passed on to LoadPixMap() where the pixmap is loaded via the TPixmapLoaders.

Don't ya just love this OO stuff. :o)

As Michael R has stated, you can bypass the usual TPixmapLoader chain by supplying the pixmap directly...
Local image:TImage = LoadImage(LoadPixMapPNG("image.png"))