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.InvertChannel
Inverts an image.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GraphicsMagick | 8.4 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Channel | Which channel to work with. Can be opacity, red, green or blue. The value rgb will apply effect to all three color channels. | "rgb" |
Result
Returns OK or error.
Description
Inverts an image.All pixel values are negated.
This is same as MBS( "GMImage.MultiplyChannel"; ImageRef; Channel; -1; 0; 65535), but a bit faster.
Examples
Invert image:
Set Variable [ $image ; Value: MBS( "GMImage.NewFromContainer"; Invert::Input ) ]
# each channel...
// Set Variable [ $r ; Value: MBS( "GMImage.InvertChannel"; $image; "red") ]
// Set Variable [ $r ; Value: MBS( "GMImage.InvertChannel"; $image) ]
// Set Variable [ $r ; Value: MBS( "GMImage.InvertChannel"; $image; "blue") ]
# all channels...
Set Variable [ $r ; Value: MBS( "GMImage.InvertChannel"; $image; "rgb") ]
Set Field [ Invert::Output ; MBS( "GMImage.WriteToPNGContainer"; $image; "output.png") ]
Set Variable [ $r ; Value: MBS( "GMImage.Release"; $image) ]
See also
- GMImage.BlurChannel
- GMImage.LevelChannel
- GMImage.MultiplyChannel
- GMImage.New
- GMImage.NewFromContainer
- GMImage.Release
- GMImage.WriteToPNGContainer
Example Databases
Blog Entries
Release notes
- Version 8.4
- Added GMImage.InvertChannel function.
Created 13th September 2018, last changed 11st November 2019
GMImage.Implode - GMImage.IsGray
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins