query_coloredT_query_coloredQueryColoredQueryColoredquery_colored (Operator)
Name
query_coloredT_query_coloredQueryColoredQueryColoredquery_colored
— Query the number of colors for color output.
Signature
def query_colored() -> Sequence[int]
Description
query_coloredquery_coloredQueryColoredQueryColoredquery_colored
returns all possible parameter values for
set_coloredset_coloredSetColoredSetColoredset_colored
. set_coloredset_coloredSetColoredSetColoredset_colored
defines how many
colors are used for region or graphics output.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
PossibleNumberOfColorsPossibleNumberOfColorsPossibleNumberOfColorspossibleNumberOfColorspossible_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)
Result
query_coloredquery_coloredQueryColoredQueryColoredquery_colored
always returns 2 (
H_MSG_TRUE)
.
Possible Successors
set_coloredset_coloredSetColoredSetColoredset_colored
,
set_colorset_colorSetColorSetColorset_color
,
disp_regiondisp_regionDispRegionDispRegiondisp_region
Alternatives
query_colorquery_colorQueryColorQueryColorquery_color
See also
set_coloredset_coloredSetColoredSetColoredset_colored
,
set_colorset_colorSetColorSetColorset_color
Module
Foundation