GMImage.FloodFillOpacity
------------------------

Floodfill pixels matching color (within fuzz factor) of target pixel(x,y) with replacement opacity value using method.

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

MBS( "GMImage.FloodFillOpacity"; ImageRef; X; Y; Opacity; PaintMethod ) 

**MBS**( **"GMImage.FloodFillOpacity";** /\* Floodfill pixels matching color (within fuzz factor) of target pixel(x,y) with replacement opacity value using method. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$X**; /\* The X Positione.g. 0 \*/   
**$Y**; /\* The Y Positione.g. 0 \*/   
**$Opacity**; /\* A value from 0 to 65535.e.g. 127\*257 \*/   
**$PaintMethod**) /\* PointMethod = 0, ReplaceMethod = 1, FloodfillMethod = 2, FillToBorderMethod = 3, ResetMethod = 4e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| X | The X Position | 0 |
| Y | The Y Position | 0 |
| Opacity | A value from 0 to 65535. | 127\*257 |
| PaintMethod | PointMethod = 0, ReplaceMethod = 1, FloodfillMethod = 2, FillToBorderMethod = 3, ResetMethod = 4 | 1 |

### Result

Returns "OK" on success.

### Description

Floodfill pixels matching color (within fuzz factor) of target pixel(x,y) with replacement opacity value using method.  
### See also

- [GMImage.FloodFillColorXY](GMImageFloodFillColorXY.md)
- [GMImage.FloodFillTexture](GMImageFloodFillTexture.md)

This function checks for a license.

Created 18th August 2014 , last changed 11st November 2019

  
[GMImage.FloodFillColorXY](GMImageFloodFillColorXY.md) - [GMImage.FloodFillTexture](GMImageFloodFillTexture.md)

[HTML Version](GMImageFloodFillOpacity.shtml)