Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PxGetImageExtensions()

Query supported image types

Synopsis:

#include <photon/PxImage.h>

int PxGetImageExtensions(char *extlist,
                         int len,
                         char const *prefix);

Arguments:

extlist
A buffer the function fills with a space-separated list of image filename extensions supported by the currently loaded image handler plugins.
len
The length of the extlist buffer.
prefix
An optional prefix string the function can append to each extension to make it easy to create filter lists.

Library:

phexlib

Description:

This function creates a space-separated list of image filename extensions supported by the currently loaded image handler plugins, and puts the list into extlist. You can easily create a filter list by passing a string containing an asterisk and period characters ("*.") as the prefix. This will create, for example, a list such as: *.jpg *.gif *.bmp.

Returns:

0
Success
1
Failure

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PxLoadImage().

Images in the Raw Drawing and Animation chapter of the Photon Programmer's Guide