Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

dev_displaydev_displayDevDisplayDevDisplaydev_display (算子名称)

名称

dev_displaydev_displayDevDisplayDevDisplaydev_display — Displays image objects in the current graphics window.

参数签名

dev_display(Object : : : )

Herror dev_display(const Hobject Object)

Herror T_dev_display(const Hobject Object)

void DevDisplay(const HObject& Object)

static void HWindow::DevDisplay(const HObject& Object)

static void HOperatorSet.DevDisplay(HObject objectVal)

static void HWindow.DevDisplay(HObject objectVal)

def dev_display(object: HObject) -> None

描述

dev_displaydev_displayDevDisplayDevDisplayDevDisplaydev_display displays an iconic object (image, region, or XLD) in the active graphics window. This is equivalent to a double click on an icon variable inside the variable window.

注意

Using the code export feature of HDevelop, the code that is generated for this operator may have a different behavior than the related HALCON operator. For a detailed description of the code export of HDevelop graphics operators into the different programming languages see in the “HDevelop User's Guide” the chapter Code Export -> General Aspects of Code Generation -> Graphics Windows.

参数表

ObjectObjectObjectObjectobjectValobject (input_object)  object(-array) objectHObjectHObjectHObjectHobject

Image objects to be displayed.

例程 (HDevelop)

read_image (Image, 'fabrik')
regiongrowing (Image, Regions, 3, 3, 6, 100)
dev_clear_window ()
dev_display (Image)
dev_set_colored (12)
dev_set_draw ('margin')
dev_display (Regions)

结果

If the values of the specified parameters are correct, dev_displaydev_displayDevDisplayDevDisplayDevDisplaydev_display returns 2 ( H_MSG_TRUE) . Otherwise, an exception is raised and an error code returned.

可替代算子

disp_objdisp_objDispObjDispObjDispObjdisp_obj, disp_imagedisp_imageDispImageDispImageDispImagedisp_image, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_xlddisp_xldDispXldDispXldDispXlddisp_xld

参考其它

dev_set_colordev_set_colorDevSetColorDevSetColorDevSetColordev_set_color, dev_set_coloreddev_set_coloredDevSetColoredDevSetColoredDevSetColoreddev_set_colored, dev_set_drawdev_set_drawDevSetDrawDevSetDrawDevSetDrawdev_set_draw, dev_set_line_widthdev_set_line_widthDevSetLineWidthDevSetLineWidthDevSetLineWidthdev_set_line_width

模块

Foundation