BLOBCOPY (Statement)


Copy an object label number.


BLOBCOPY <label number>, <copy destination screen>, <coordinate X>, <coordinate Y>


<label number>
Designates the label number obtained with labeling (0 to 511).
<copy destination screen>
Designates the storage memory number of the copy destination (0 to 3).
<coordinate X>
Designates the X coordinate (0 to 511).
<coordinate Y>
Designates the Y coordinate (0 to 479).
Example of BLOBCOPY
  • Before executing this function, you need to execute labeling with BLOB beforehand.
  • Do not change the screen, because the copy source screen (labeling object screen) is referenced when copying.
  • For this instruction, a µVision board (option) is required.



VISSCREEN 0,1
'Instantaneously draw on storage memory 1
VISCLS 128
'Clear the screen
VISSCREEN 1,0,1
'Instantaneously draw on drawing screen 0
VISCLS 0
WINDMAKE R,1,512,480,0,2
'Set window 1 to rectangle
CAMIN 1
'Obtain a camera image for the storage memory
BLOB 1,0,0,0,128
'Execute labeling
I1 = VISSTATUS(0)
IF I1 = 0 THEN
I1 = VISSTATUS(1)
IF I1<>0 THEN
BLOBCOPY 0,1,100,100
'Copy label 0 to storage memory 1
END IF
END IF
VISPLNOUT 0
DELAY 2000
VISPLNOUT 1
DELAY 2000
VISCAMOU VISCAMOUT 1


Top