Image/Pixel-Color Operations

<< Click to Display Table of Contents >>

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

Image/Pixel-Color Operations

ANA.HFlip - Flip IR horizontally

Previous Top Next


MiniRobotLanguage (MRL)

 

ANA.HFlip

Flip an Image-Register (IR) horizontally

 

 

Intention

 

This command will flip the Content of IR 1 horizontally..

 

1. Just Flip IR P1 horizontally

This simple Script shows the Use of ANA.HFlip.

 

ANA.New|0|800|400

ANA.hgradient|0|&HFF0000|&H1000F4

ANA.Show|0!

' Make Resolution from P2 to the resolution from P1.

ANA.HFlip|0

DMP.6

ANA.Show|0!

ENR.

 

 

2. Flip P1 to P2

In this case, P1 will be H-Flipped to P2.

 

ANA.New|0|800|400

ANA.hgradient|0|&HFF0000|&H1000F4

ANA.Show|0!

' Make Resolution from P2 to the resolution from P1.

ANA.HFlip|0|1

DMP.6

ANA.Show|1!

ENR.

 

  Effect of HFlip:

 

HFlip1           HFlip2

 

 

Syntax

 

ANA.HFlip|P1][|P2]

 

Parameter Explanation

 

P1 - Image-Register number, this IR contains the Image that is to be H-Flipped.

P2 - opt. Destination Image-Register number, if omitted, P1 will be used as Destination.

 

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

 

 

Example

 

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

' ANA.HFlip-Sample

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

ANA.New|0|800|400

ANA.hgradient|0|&HFF0000|&H1000F4

ANA.Show|0!

' Make Resolution from P2 to the resolution from P1.

ANA.HFlip|0

DMP.6

ANA.Show|0!

ENR.

 

 

 

Remarks

 

-

 

 

 

Limitations:

 

-

 

 

See also: