mvm_gui_send_imageT_mvm_gui_send_imageMvmGuiSendImageMvmGuiSendImage (Operator)

Name

mvm_gui_send_imageT_mvm_gui_send_imageMvmGuiSendImageMvmGuiSendImage — Send an image to a webclient.

Signature

mvm_gui_send_image(Image : : ServerHandle, ConnectionHandle, Id : )

Herror T_mvm_gui_send_image(const Hobject Image, const Htuple ServerHandle, const Htuple ConnectionHandle, const Htuple Id)

void MvmGuiSendImage(const HObject& Image, const HTuple& ServerHandle, const HTuple& ConnectionHandle, const HTuple& Id)

static void HHdevguiServerExtpack.MvmGuiSendImage(HObject image, HTuple serverHandle, HTuple connectionHandle, HTuple id)

Description

Sends an image in ImageImageImageImageimage via a server specified by ServerHandleServerHandleServerHandleServerHandleserverHandle to a connected webclient specified by ConnectionHandleConnectionHandleConnectionHandleConnectionHandleconnectionHandle.

Multiple connections can be specified as tuple. A ConnectionHandleConnectionHandleConnectionHandleConnectionHandleconnectionHandle with the value 'all'"all""all""all""all" means that the message is sent to all connected clients and is the default. A value of 'first'"first""first""first""first" addresses only the first connection. Additionally, an optional custom error handling can be specified in ConnectionHandleConnectionHandleConnectionHandleConnectionHandleconnectionHandle. For further explanations on connection handles and custom error handling, see the MachineVisionMakers / HDevGUI chapter documentation for this extension package.

The message ID by which the message will be received on client side has to be given in IdIdIdIdid. The ID must be a valid C identifier which consists of letters, digits, and underscores and must start with a letter or underscore.

The web client can use the HTML code similar to the following to visualize the image: <canvas id="canvas1" data-bind="canvas1"></canvas>

Execution Information

Parameters

ImageImageImageImageimage (input_object)  image(-array) objectHObjectHObjectHobject

The image to be sent

ServerHandleServerHandleServerHandleServerHandleserverHandle (input_control)  serial HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

GUI server handle

ConnectionHandleConnectionHandleConnectionHandleConnectionHandleconnectionHandle (input_control)  socket(-array) HTupleHTupleHtuple (handle / string) (IntPtr / IntPtr) (HHandle / HString) (handle / char*)

The destination connection handle

Default value: 'all' "all" "all" "all" "all"

List of values: 'ack_error_ignore'"ack_error_ignore""ack_error_ignore""ack_error_ignore""ack_error_ignore", 'ack_error_lowlevel'"ack_error_lowlevel""ack_error_lowlevel""ack_error_lowlevel""ack_error_lowlevel", 'ack_error_raise'"ack_error_raise""ack_error_raise""ack_error_raise""ack_error_raise", 'all'"all""all""all""all", 'connection_error_ignore'"connection_error_ignore""connection_error_ignore""connection_error_ignore""connection_error_ignore", 'connection_error_lowlevel'"connection_error_lowlevel""connection_error_lowlevel""connection_error_lowlevel""connection_error_lowlevel", 'connection_error_raise'"connection_error_raise""connection_error_raise""connection_error_raise""connection_error_raise", 'first'"first""first""first""first"

IdIdIdIdid (input_control)  proc_name HTupleHTupleHtuple (string) (string) (HString) (char*)

message ID

See also

mvm_gui_send_tuplemvm_gui_send_tupleMvmGuiSendTupleMvmGuiSendTupleMvmGuiSendTuple

Module

Foundation