Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

GMImage.GetWidth

Returns the Image width.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
GraphicsMagick 2.0 Yes Yes Yes Yes Yes

MBS( "GMImage.GetWidth"; ImageRef )

Parameters

Parameter Description Example value
ImageRef The image reference number. 1

Result

Returns the Image width.

Description

Returns the Image width.

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 )

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.Destroy"; $Image ) ]

See also

Example Databases


GMImage.GetView   -   GMImage.GetXMP

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins