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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
GMImage.Resize
Resize image, specifying geometry, filter, and blur.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GraphicsMagick | 9.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageRef | The image reference number. | 1 | |
| geometry | The rectangle to use. Geometry is specified as a width and height "100x200". With an optional offset "100x200+10+20". For percent values, add a percent on the end, for % values add a %: "100x200%!" |
"100x200" | |
| FilterTypes | Which filter to use. Can be one of Undefined, Point, Box, Triangle, Hermite, Hanning, Hamming, Blackman, Gaussian, Quadratic, Cubic, Catrom, Mitchell, Lanczos, Bessel, or Sinc. |
"Cubic" | Optional |
| Blur | The blur radius. Only used if filter is specified. |
3 | Optional |
Result
Returns OK or error.
Description
Resize image, specifying geometry, filter, and blur.If filter or blur is not specified, we use image defaults.
Examples
Resize image to 1000x1000 with cubic filter:
Set Variable [ $BigImageRef ; Value: MBS("GMImage.NewFromContainer"; Test::BigImage) ]
Set Variable [ $Result ; Value: MBS("GMImage.Resize"; $BigImageRef; "1000x1000"; "Cubic"; 0) ]
Set Field [ Test::Result ; MBS( "GMImage.WriteToPNGContainer"; $BigImageRef; "test.png" ) ]
Set Variable [ $Error ; Value: MBS("GMImage.Destroy";$BigImageRef) ]
See also
- GMImage.Affine
- GMImage.GetSize
- GMImage.Negate
- GMImage.New
- GMImage.NewFromContainer
- GMImage.Raise
- GMImage.Repage
- GMImage.Rotate
- GMImage.SetSize
- GMImage.WriteToPNGContainer
Blog Entries
Release notes
- Version 9.0
- Added GMImage.AutoOrient, GMImage.Extent, GMImage.GetQuiet, GMImage.Repage, GMImage.Resize and GMImage.SetQuiet functions.
Created 28th December 2018, last changed 13th May 2019
GMImage.ReplaceColor - GMImage.Roll
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins