Image/Pixel-Color Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Image/Pixel-Color Operations > ANA. - Imageworks > Manage IR's >

Image/Pixel-Color Operations

ANA.Swap - Swap IR with IR

Previous Top Next


MiniRobotLanguage (MRL)

 

ANA.Swap

Swap Image Register (IR) with another Image-Register (IR)

 

 

Intention

 

This command will exchange the Content of an Image Register with another Image Register.

The destination Image Register can not be empty.

In case there is another picture in the destination IR, this will be overwritten.

 

STW.ct|#32770|Basic-NAV Matrix 02

' We snap into the IR 2 here

ANA.Swap|2

' Swap IR 2 into IR 1 and IR 1 into IR 2

ANA.Swap|2|1

' Display IR 1

ANA.Show|1!

ENR.

 

 

Syntax

 

ANA.Swap|P1|P2

 

Parameter Explanation

 

P1 - Source Image-Register Number

P2 - Dest Image-Register Number

 

The Command will leave a 0/1 on the TOS. As always, a 0 means Error, while a 1 means "all fine".

 

Example

 

'***********************************

' ANA.Swap-Sample

'***********************************

STW.Act|FORM_DESKTOPS_MANAGER_FRMMAIN_CLASS:0|Desktops-Manager

ANA.Snap|0

ANA.BlockTo|0|1|40

' See the Content before the Swap

ANA.show|0!

ANA.show|1!

ANA.Swap|0|1

' See the Content after the Swap

ANA.show|0!

ANA.show|1!

ENR.

 

 

' Below you can see a part of the result of the "BlockTo"Operation.
' We used it here to have a content that can be swapped.

 

ANA_Blockto

 

 

 

 

Remarks

 

-

 

 

 

Limitations:

 

-

 

See also: