Image | Audio | Video |
---|---|---|
X |
Returns the number of colors in an image.
Include file
dmbimage.h
Syntax
>>-NumColors--(--handle--)-------------------------------------><
Parameters (data type)
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;