GMImage.SetInterlaceType
------------------------

Sets the interlace type.

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

MBS( "GMImage.SetInterlaceType"; ImageRef; Interlace ) 

**MBS**( **"GMImage.SetInterlaceType";** /\* Sets the interlace type. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Interlace**) /\* UndefinedInterlace = 0, NoInterlace = 1, LineInterlace = 2, PlaneInterlace = 3, PartitionInterlace = 4e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Interlace | UndefinedInterlace = 0, NoInterlace = 1, LineInterlace = 2, PlaneInterlace = 3, PartitionInterlace = 4 | 1 |

### Result

Returns "OK" on success.

### Description

Sets the interlace type.  
### See also

- [GMImage.GetInterlaceType](GMImageGetInterlaceType.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[GMImage.SetIPTCProfile](GMImageSetIPTCProfile.md) - [GMImage.SetIsValid](GMImageSetIsValid.md)

[HTML Version](GMImageSetInterlaceType.shtml)