IBM Books

Image, Audio, and Video Extenders Administration and Programming

NumColors


Image Audio Video
X    

Returns the number of colors in an image.

Include file

dmbimage.h

Syntax

>>-NumColors--(--handle--)-------------------------------------><
 

Parameters (data type)

handle (DB2IMAGE)
Column name or host variable that contains the handle of the image.

Return values (data type)

Number of colors in image (INTEGER)

Examples

Get the names of image files from the picture column of the employee table for images that have less than 16 colors:

EXEC SQL BEGIN DECLARE SECTION;
 char hvImg_fname[251];
EXEC SQL END DECLARE SECTION;
 
EXEC SQL SELECT FILENAME(PICTURE)
     INTO :hvImg_fname
     FROM EMPLOYEE
     WHERE NUMCOLORS(PICTURE) < 16;


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]