Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

GMImage.GetHeight

Returns the image height.

Component Version macOS Windows Linux Server iOS SDK
GraphicsMagick 2.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "GMImage.GetHeight"; ImageRef )   More

Parameters

Parameter Description Example
ImageRef The image reference number. 1

Result

Returns the image height.

Description

Returns the image height.

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.Release";$Image)
];
$Width & " x " & $Height )

Query size of image into $h and $w:

Set Variable [ $Image ; Value: MBS( "GMImage.NewFromContainer"; ImageView::ImageContainer ) ]
Set Variable [ $w ; Value: MBS( "GMImage.GetWidth"; $Image ) ]
Set Variable [ $h ; Value: MBS( "GMImage.GetHeight"; $Image ) ]
Set Variable [ $r ; Value: MBS( "GMImage.Release"; $Image ) ]

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 21st December 2018


GMImage.GetGifDisposeMethod - GMImage.GetICCColorProfile