ClassesClasses | | Operators

query_coloredT_query_coloredQueryColoredQueryColored (Operator)

Name

query_coloredT_query_coloredQueryColoredQueryColored — Query the number of colors for color output.

Signature

query_colored( : : : PossibleNumberOfColors)

Herror T_query_colored(Htuple* PossibleNumberOfColors)

void QueryColored(HTuple* PossibleNumberOfColors)

static HTuple HInfo::QueryColored()

static void HOperatorSet.QueryColored(out HTuple possibleNumberOfColors)

static HTuple HInfo.QueryColored()

Description

query_coloredquery_coloredQueryColoredQueryColoredQueryColored returns all possible parameter values for set_coloredset_coloredSetColoredSetColoredSetColored. set_coloredset_coloredSetColoredSetColoredSetColored defines how many colors are used for region or graphics output.

Execution Information

Parameters

PossibleNumberOfColorsPossibleNumberOfColorsPossibleNumberOfColorsPossibleNumberOfColorspossibleNumberOfColors (output_control)  integer-array HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Tuple of the possible numbers of colors.

Example (HDevelop)

regiongrowing(Image,Regions,5,5,6,100)
query_colored(Colors)
dev_set_colored(Colors[1])
dev_display (Regions)

Example (C)

Htuple Colors ;
regiongrowing(Image,&Seg,5,5,6,100) ;
T_query_colored(&Colors) ;
set_colored(WindowHandle,get_i(Colors,1)) ;
disp_region(Seg,WindowHandle) ;

Example (HDevelop)

regiongrowing(Image,Regions,5,5,6,100)
query_colored(Colors)
dev_set_colored(Colors[1])
dev_display (Regions)

Example (HDevelop)

regiongrowing(Image,Regions,5,5,6,100)
query_colored(Colors)
dev_set_colored(Colors[1])
dev_display (Regions)

Example (HDevelop)

regiongrowing(Image,Regions,5,5,6,100)
query_colored(Colors)
dev_set_colored(Colors[1])
dev_display (Regions)

Result

query_coloredquery_coloredQueryColoredQueryColoredQueryColored always returns 2 (H_MSG_TRUE).

Possible Successors

set_coloredset_coloredSetColoredSetColoredSetColored, set_colorset_colorSetColorSetColorSetColor, disp_regiondisp_regionDispRegionDispRegionDispRegion

Alternatives

query_colorquery_colorQueryColorQueryColorQueryColor

See also

set_coloredset_coloredSetColoredSetColoredSetColored, set_colorset_colorSetColorSetColorSetColor

Module

Foundation


ClassesClasses | | Operators