Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Border image (add border to image).
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
GraphicsMagick | 2.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
ImageRef | The image reference number. | 1 | |
Geometry | Optional, The rectangle with border width and height. Geometry is specified as a width and height "100x200". | "100x200" | Optional |
Returns "OK" on success.
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.Release";$Image)
];
$Result)
Add white space:
Set Variable [ $image ; Value: MBS("GMImage.NewFromContainer"; ScancodeTests::MyImage ) ]
Set Variable [ $r ; Value: MBS("GMImage.SetBorderColor"; $image; "white") ]
Set Variable [ $r ; Value: MBS("GMImage.Border"; $image; "20x2") ]
Created 18th August 2014, last changed 21st December 2018
GMImage.BlurChannel - GMImage.BoundingBox
Feedback: Report problem or ask question.