register-image-loader

Name

register-image-loader -- Register PROC as the loader to use for images ending in EXTENSION.

Synopsis

(register-image-loader extension proc)

Description

Register proc as the loader to use for images ending in extension. extension must be a string beginning with a period, the empty string (for files with no extension), or the string "default" (for files that no other image loader succeeds in loading). proc will be called with the full pathname of the image and should return an image object, or #f if it succeeds.

Implementation Notes

Module: Built-in Primitive

Defined in src/image.c at line 407 (CVS log)