GMImage.SetEndian
-----------------

Sets the Endianness (little like Intel or big like SPARC) for image formats which support endian-specific options.

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

MBS( "GMImage.SetEndian"; ImageRef; endian ) 

**MBS**( **"GMImage.SetEndian";** /\* Sets the Endianness (little like Intel or big like SPARC) for image formats which support endian-specific options. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$endian**) /\* UndefinedEndian = 0, LSBEndian = 1, MSBEndian = 2e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| endian | UndefinedEndian = 0, LSBEndian = 1, MSBEndian = 2 | 1 |

### Result

Returns "OK" on success.

### Description

Sets the Endianness (little like Intel or big like SPARC) for image formats which support endian-specific options.  
### See also

- [GMImage.GetEndian](GMImageGetEndian.md)
- [GMImage.SetAdjoin](GMImageSetAdjoin.md)
- [GMImage.SetDensity](GMImageSetDensity.md)
- [GMImage.SetMagick](GMImageSetMagick.md)

This function checks for a license.

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

  
[GMImage.SetEXIFOrientation](GMImageSetEXIFOrientation.md) - [GMImage.SetFileName](GMImageSetFileName.md)

[HTML Version](GMImageSetEndian.shtml)