GMImage.Flip
------------

Flip image (reflect each scanline in the vertical direction)

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [2.0](newinversion20.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.Flip"; ImageRef ) 

**MBS**( **"GMImage.Flip";** /\* Flip image (reflect each scanline in the vertical direction) \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |

### Result

Returns "OK" on success.

### Description

Flip image (reflect each scanline in the vertical direction)  
### Examples

Mirror the picture.

 Let (   
\[   
$Image = MBS ("[GMImage.NewFromContainer](GMImageNewFromContainer.md)"; GraphicsMagick::image );   
$RotateResult = MBS ("GMImage.Flip"; $Image );   
$Result = MBS ("[GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md)"; $Image );   
$DestroyResult = MBS ("[GMImage.Release](GMImageRelease.md)";$Image )  
\];   
$Result )  
### See also

- [GMImage.Blur](GMImageBlur.md)
- [GMImage.Crop](GMImageCrop.md)
- [GMImage.Flop](GMImageFlop.md)
- [GMImage.Free](GMImageFree.md)
- [GMImage.Hash](GMImageHash.md)
- [GMImage.Map](GMImageMap.md)
- [GMImage.NewFromContainer](GMImageNewFromContainer.md)
- [GMImage.Release](GMImageRelease.md)
- [GMImage.Strip](GMImageStrip.md)
- [GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md)

### Example Databases

- [GraphicsMagick/Correct Image Orientation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Correct%20Image%20Orientation.shtml#1ScriptAnchor_)
- [GraphicsMagick/GraphicsMagick Sample](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/GraphicsMagick%20Sample.shtml#10ScriptAnchor_)

### Blog Entries

- [MBS Plugin Advent calendar: 16 - GraphicsMagick](https://www.mbsplugins.de/archive/2023-12-16/MBS_Plugin_Advent_calendar_16_/monkeybreadsoftware_blog_filemaker)
- [Correct Image Orientation in FileMaker](https://www.mbsplugins.de/archive/2018-11-09/Correct_Image_Orientation_in_F/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 21st December 2018

  
[GMImage.Flatten](GMImageFlatten.md) - [GMImage.FloodFillColor](GMImageFloodFillColor.md)

[HTML Version](GMImageFlip.shtml)