ClassesClasses | | Operators

serialize_regionT_serialize_regionSerializeRegionSerializeRegion (Operator)

Name

serialize_regionT_serialize_regionSerializeRegionSerializeRegion — Serialize a region.

Signature

serialize_region(Region : : : SerializedItemHandle)

Herror T_serialize_region(const Hobject Region, Htuple* SerializedItemHandle)

void SerializeRegion(const HObject& Region, HTuple* SerializedItemHandle)

HSerializedItem HRegion::SerializeRegion() const

static void HOperatorSet.SerializeRegion(HObject region, out HTuple serializedItemHandle)

HSerializedItem HRegion.SerializeRegion()

Description

serialize_regionserialize_regionSerializeRegionSerializeRegionSerializeRegion serializes a region (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem for an introduction of the basic principle of serialization). The region is defined by the parameter RegionRegionRegionRegionregion. The serialized region is returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle and can be deserialized by deserialize_regiondeserialize_regionDeserializeRegionDeserializeRegionDeserializeRegion.

Execution Information

Parameters

RegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHobject

Region.

SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle (output_control)  serialized_item HSerializedItem, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the serialized item.

Result

If the parameters are valid, the operator serialize_regionserialize_regionSerializeRegionSerializeRegionSerializeRegion returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindow, read_imageread_imageReadImageReadImageReadImage, read_regionread_regionReadRegionReadRegionReadRegion, thresholdthresholdThresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing

Possible Successors

fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItem, deserialize_regiondeserialize_regionDeserializeRegionDeserializeRegionDeserializeRegion

See also

deserialize_regiondeserialize_regionDeserializeRegionDeserializeRegionDeserializeRegion

Module

Foundation


ClassesClasses | | Operators