HPutDRL (see figure 5.18) stores region data encoded in the Hrlregion structure region in the HALCON database of iconic objects and returns the database key of the new iconic object. Note that HPutDRL actually copies the data itself, not only a pointer to the data. In addition to that, the region object is assigned to the image object specified by the database key obj_key as the region component. The latter might have been created before by using HCrObj or HCopyObj, see figures 5.20 and figure 5.21.
Note that HPutDRL automatically checks the result state of the underlying procedure with the macro HCkP (see section “HCkP”). Thus, you must not use HCkP on HPutDRL yourself.