query_coloredT_query_coloredQueryColoredQueryColoredquery_colored (Operator)

Name

query_coloredT_query_coloredQueryColoredQueryColoredquery_colored — 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()

def query_colored() -> Sequence[int]

Description

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

Execution Information

Parameters

PossibleNumberOfColorsPossibleNumberOfColorsPossibleNumberOfColorsPossibleNumberOfColorspossibleNumberOfColorspossible_number_of_colors (output_control)  integer-array HTupleSequence[int]HTupleHtuple (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);
create_tuple_i(&color,get_i(Colors,1));
T_set_colored(WindowHandle,color);
destroy_tuple(color);
T_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_coloredQueryColoredQueryColoredQueryColoredquery_colored always returns 2 ( H_MSG_TRUE) .

Possible Successors

set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_colorset_colorSetColorSetColorSetColorset_color, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

Alternatives

query_colorquery_colorQueryColorQueryColorQueryColorquery_color

See also

set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_colorset_colorSetColorSetColorSetColorset_color

Module

Foundation