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. If an error occurs, pictVar is set to an empty picture.

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
Generated by QDoc 2.8 on Wed, Feb 17, 2010 17:43:17