GMImage.WriteToBMPContainer
---------------------------

Writes the picture in BMP format to a container object which you can store in a container field.

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

MBS( "GMImage.WriteToBMPContainer"; ImageRef { ; FileName } ) 

**MBS**( **"GMImage.WriteToBMPContainer";** /\* Writes the picture in BMP format to a container object which you can store in a container field. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$FileName**) /\* Optional; The file name to use for the container. Default is "image.bmp"e.g. "ball.bmp" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageRef | The image reference number. | 1 |  |
| FileName | The file name to use for the container. Default is "image.bmp" | "ball.bmp" | Optional |

### Result

Returns a container value.

### Description

Writes the picture in BMP format to a container object which you can store in a container field.  
For preview a JPEG version is included as well as a file name "image.bmp" and the image size.  
See also [GMImage.WriteToFile](GMImageWriteToFile.md), [GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md), [GMImage.WriteToTiffContainer](GMImageWriteToTiffContainer.md), [GMImage.WriteToJPEGContainer](GMImageWriteToJPEGContainer.md) and [GMImage.WriteToGIFContainer](GMImageWriteToGIFContainer.md).  
### Examples

Get a container value from the picture in BMP format.

 MBS ( "GMImage.WriteToBMPContainer"; $MyImageRef ; "logo.bmp" )  
### See also

- [GMImage.WriteToContainer](GMImageWriteToContainer.md)
- [GMImage.WriteToFile](GMImageWriteToFile.md)
- [GMImage.WriteToGIFContainer](GMImageWriteToGIFContainer.md)
- [GMImage.WriteToJPEGContainer](GMImageWriteToJPEGContainer.md)
- [GMImage.WriteToPDFContainer](GMImageWriteToPDFContainer.md)
- [GMImage.WriteToPNGContainer](GMImageWriteToPNGContainer.md)
- [GMImage.WriteToTiffContainer](GMImageWriteToTiffContainer.md)
- [GMImage.WriteToWebPContainer](GMImageWriteToWebPContainer.md)

### Blog Entries

- [GraphicsMagick in FileMaker, part 3](https://www.mbsplugins.de/archive/2022-12-03/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2011, Seite 33](https://filemaker-magazin.de/neuigkeit/3506-Appetithappen-FMM_201105-06)

This function checks for a license.

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

  
[GMImage.WriteImages](GMImageWriteImages.md) - [GMImage.WriteToContainer](GMImageWriteToContainer.md)

[HTML Version](GMImageWriteToBMPContainer.shtml)