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...
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"))