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

GMImage.GetSize

Queries the Width and height of a raw image.

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

Parameters

Parameter Description Example
ImageRef The image reference number. 1

Result

Returns size on success or error on failure.

Description

Queries the Width and height of a raw image.
Size is returned as Width & "x" & Height, e.g. "30x20".

Examples

Shows size:

Set Variable [ $image ; Value: MBS("GMImage.NewFromFile"; "/Users/cs/Desktop/image4.png") ]
Set Variable [ $value ; Value: MBS("GMImage.GetSize"; $image) ]
Show Custom Dialog [ "size" ; $value ]
Set Variable [ $r ; Value: MBS("GMImage.Release"; $image) ]

See also

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 9th November 2021


GMImage.GetScene - GMImage.GetStrokeAntiAlias