Clipboard.GetPicture
--------------------

Queries a picture from clipboard.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Clipboard](component_Clipboard.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Clipboard.GetPicture" { ; ImageType; FileName } ) 

**MBS**( **"Clipboard.GetPicture";** /\* Queries a picture from clipboard. \*/  
**$ImageType**; /\* Optional; The type of image to return.   
Either JPEG, PNG, GIF or BMP. Default is JPEG.e.g. "JPEG" \*/   
**$FileName**) /\* Optional; The filename to use for the picture.   
Default is "image" with the extension matching the image type.e.g. "test.jpg" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageType | The type of image to return.    Either JPEG, PNG, GIF or BMP. Default is JPEG. | "JPEG" | Optional |
| FileName | The filename to use for the picture.    Default is "image" with the extension matching the image type. | "test.jpg" | Optional |

### Result

Returns image or error.

### Description

Queries a picture from clipboard.  
You can store image in a container field for example.  
### See also

- [Clipboard.SetPicture](ClipboardSetPicture.md)

### Release notes

- **Version 13.1**
    - Improved [Clipboard.GetPicture](https://www.mbsplugins.eu/ClipboardGetPicture.shtml) to take JPEG, PNG or GIF directly from the clipboard if available. Falls back to bitmap if that is not available.
- **Version 9.5**
    - Fixed problem on Windows with returning pictures, where [Clipboard.GetPicture](http://www.mbsplugins.eu/ClipboardGetPicture.shtml) would return a flipped image.
    - Fixed problem with [Clipboard.GetPicture](http://www.mbsplugins.eu/ClipboardGetPicture.shtml), when the picture comes without alpha channel.

### Blog Entries

- [MBS FileMaker Plugin, version 13.1pr1](https://www.mbsplugins.de/archive/2023-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.5pr3](https://www.mbsplugins.de/archive/2019-10-13/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.3pr5](https://www.mbsplugins.de/archive/2016-07-04/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 3th July 2016 , last changed 29th September 2020

  
[Clipboard.GetPDF](ClipboardGetPDF.md) - [Clipboard.GetRTFText](ClipboardGetRTFText.md)

[HTML Version](ClipboardGetPicture.shtml)