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.Border

Border image (add border to image).

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

MBS( "GMImage.Border"; ImageRef { ; Geometry } )

Parameters

Parameter Description Example value
ImageRef The image reference number. 1
Geometry Optional
Optional, The rectangle with border width and height. Geometry is specified as a width and height "100x200".
"100x200"

Result

Returns "OK" on success.

Description

Border image (add border to image).
The color of the border is specified by the borderColor attribute.
Offset from geometry is not used, just width and height.

Examples

Add whitespace on top and bottom of image:

Let ( [

$Image = MBS("GMImage.NewFromContainer"; GraphicsMagick::image);
$r = MBS( "GMImage.SetBorderColor"; $Image; "white" );
$r = MBS("GMImage.Border";$Image; "0x100");
$Result = MBS("GMImage.WriteToPNGContainer"; $Image);

$r = MBS("GMImage.Destroy";$Image)
];

$Result)

See also


GMImage.BlurChannel   -   GMImage.BoundingBox

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins