QPix Command Reference Pictures |

### QPx_FlipPicture

QPx_FlipPicture(pictVar; flipMode):error
| pictVar | Picture | Picture variable
| flipMode | Longint | How the picture should be flipped
| error | Longint | Error result

Flips a picture variable horizontally, vertically or both.

The source picture is passed in the pictVar parameter. The source picture may be compressed or uncompressed. The flipped picture is also returned in the pictVar parameter and it is always uncompressed.

The flipMode parameter is a number that denotes how the picture should be flipped. flipMode accepts the following constants and values:

qpx_FlipHorizontal | 1 | Horizontal flipping
qpx_FlipVertical | 2 | Vertical flipping
qpx_FlipBoth | 3 | Horizontal and Vertical flipping

Example

``Flip gp_OriginalPicture horizontally and get` ``the result in gp_FlippedPicture` `` `C_PICTURE($pict)` `C_LONGINT($error;$flipMode)` `` `$pict:= gp_OriginalPicture` `$flipMode:=qpx_FlipHorizontal `the same as $flipMode:=1` `` `$error:=QPx_FlipPicture ($pict;$flipMode)` `` `If ($error=qpx_noErr)` `gp_FlippedPicture:=$pict` `End if`

QPix © Escape Information Services
Generated by QDoc 2.6 on Thu, 2 May 2002 00:49:51 +0300