All functions   Mac OS X   Windows   Crossplatform   Components   Guides  
New in version: 1.0   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   2.0   2.1   2.2   2.3   2.4   2.5   2.6  

GMImage.Destroy

Component: GraphicsMagick
Version: 2.0
Mac OS X: Works
Windows: Works

MBS( "GMImage.Destroy"; ImageRef )

Parameters

Parameter Description Example value
ImageRef The image reference (a number returned from the GMImage.New functions) 1

Result

Returns "OK" on success.

Description

Releases the image from memory.
Please call this function when you are done with the image to free memory.
The plugin doesn't know whether you need the image later, so it can't free the memory for you.

Examples

Show with and height

Let ( [
$Image = MBS("GMImage.NewFromContainer"; GraphicsMagick::image);
$Width = MBS("GMImage.GetWidth";$Image);
$Height = MBS("GMImage.GetHeight";$Image);
$Error = MBS("GMImage.Destroy";$Image)
];
$Width & " x " & $Height )

Feedback: Report problem or ask question.

Loading



Links
MBS REALbasic Plugins - Nachhilfe Nickenich