ImageView.Release
-----------------

Releases the image view and reclaims memory.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ImageView](component_ImageView.md) | [7.4](newinversion74.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "ImageView.Release"; ImageView ) 

**MBS**( **"ImageView.Release";** /\* Releases the image view and reclaims memory. \*/  
**$ImageView**) /\* The image view reference number.e.g. $$ImageView \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageView | The image view reference number. | $$ImageView |

### Result

Returns OK on success.

### Description

Releases the image view and reclaims memory.  
### Examples

Close image view:

 If \[ Length ( $$ImageView ) &gt; 0 \]   
 Set Variable \[ $r ; Value: MBS ("ImageView.Release"; $$ImageView ) \]   
 Set Variable \[ $$ImageView ; Value: "" \]   
End If  
### See also

- [ImageView.Clear](ImageViewClear.md)
- [ImageView.CreateWithControl](ImageViewCreateWithControl.md)
- [ImageView.CreateWithSize](ImageViewCreateWithSize.md)
- [ImageView.CreateWithWindow](ImageViewCreateWithWindow.md)
- [ImageView.List](ImageViewList.md)
- [ImageView.ReleaseAll](ImageViewReleaseAll.md)
- [ImageView.SetFrame](ImageViewSetFrame.md)
- [ImageView.SetImage](ImageViewSetImage.md)
- [MapView.Release](MapViewRelease.md)

### Example Databases

- [Mac and iOS/ImageView](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/ImageView.shtml#2ScriptAnchor_)
- [Mac and iOS/Machine Learning/Core ML Photos](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Machine%20Learning/Core%20ML%20Photos.shtml#8ScriptAnchor_)

This function checks for a license.

Created 14th September 2017 , last changed 14th September 2017

  
[ImageView.List](ImageViewList.md) - [ImageView.ReleaseAll](ImageViewReleaseAll.md)

[HTML Version](ImageViewRelease.shtml)