AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     operation flags
     R1 =     pointer to JPEG file name
     
<=     R0 =     info flags
     R2 =     width (in pixels) if requested
     R3 =     height (in pixels) if requested
     R4 =     x pixel density
     R5 =     y pixel density
     R6 =     extra workspace that would be required to plot (0=none)

This SWI returns information about a JPEG held in a file. It checks the header enough to return the width and height, and does a partial validation of the data.  It returns an error if the image appears to be invalid; if no error is returned you may assume the data is a JPEG image.

It is preferable to load the file into memory and call JPEG_Info, if you intend to display the image as well.

[sh-index] Back to list of manuals