ClassesClassesClassesClasses | | | | Operators

disp_colordisp_colorDispColordisp_colorDispColorDispColor (Operator)

Name

disp_colordisp_colorDispColordisp_colorDispColorDispColor — Displays a color (RGB) image

Signature

disp_color(ColorImage : : WindowHandle : )

Herror disp_color(const Hobject ColorImage, const Hlong WindowHandle)

Herror T_disp_color(const Hobject ColorImage, const Htuple WindowHandle)

Herror disp_color(Hobject ColorImage, const HTuple& WindowHandle)

void HImage::DispColor(const HTuple& WindowHandle) const

void DispColor(const HObject& ColorImage, const HTuple& WindowHandle)

void HImage::DispColor(const HWindow& WindowHandle) const

void HWindow::DispColor(const HImage& ColorImage) const

void HOperatorSetX.DispColor(
[in] IHUntypedObjectX* ColorImage, [in] VARIANT WindowHandle)

void HImageX.DispColor([in] IHWindowX* WindowHandle)

void HWindowX.DispColor([in] IHImageX* ColorImage)

static void HOperatorSet.DispColor(HObject colorImage, HTuple windowHandle)

void HImage.DispColor(HWindow windowHandle)

void HWindow.DispColor(HImage colorImage)

Description

disp_colordisp_colorDispColordisp_colorDispColorDispColor displays the three channels of a color image in the output window. The channels are ordered in the sequence (red,green,blue). disp_colordisp_colorDispColordisp_colorDispColorDispColor can be simulated by disp_channeldisp_channelDispChanneldisp_channelDispChannelDispChannel.

Attention

Due to the restricted number of available colors the color appearance is usually different from the original.

Parallelization

Parameters

ColorImageColorImageColorImageColorImageColorImagecolorImage (input_object)  multichannel-image objectHImageHImageHImageHImageXHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Color image to display.

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window handle.

Example (C)

/* disp_color(ColorImage) is identical to: */
Herror my_disp_color(Hobject ColorImage, Htuple *WindowHandle) {
  Htuple  Tupel;
  create_tuple(&Tupel,3);
  set_i(Tupel,1,0);
  set_i(Tupel,2,1);
  set_i(Tupel,3,2);
  T_disp_channel(ColorImage,*WindowHandle,Tupel);
  destroy_tuple(Tupel);
}

Result

If the used image contains valid values and a correct output mode is set, disp_colordisp_colorDispColordisp_colorDispColorDispColor returns 2 (H_MSG_TRUE). Otherwise an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_lutset_lutSetLutset_lutSetLutSetLut, set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi

Alternatives

disp_channeldisp_channelDispChanneldisp_channelDispChannelDispChannel, disp_objdisp_objDispObjdisp_objDispObjDispObj

See also

disp_imagedisp_imageDispImagedisp_imageDispImageDispImage, open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, reset_obj_dbreset_obj_dbResetObjDbreset_obj_dbResetObjDbResetObjDb, set_lutset_lutSetLutset_lutSetLutSetLut, dump_windowdump_windowDumpWindowdump_windowDumpWindowDumpWindow

Module

Foundation


ClassesClassesClassesClasses | | | | Operators