Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

GMImage.Negate

Negate colors in image.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
GraphicsMagick 2.0 Yes Yes Yes Yes Yes
MBS( "GMImage.Negate"; ImageRef; grayscale )   More

Parameters

Parameter Description Example value
ImageRef The image reference number. 1
grayscale Set grayscale to only negate grayscale values in image. 1

Result

Returns "OK" on success.

Description

Negate colors in image.

Examples

Negates an image:

Let ( [
$Image = MBS("GMImage.NewFromContainer"; GraphicsMagick::image);
$Result = MBS("GMImage.Negate";$Image);
$Result = MBS("GMImage.WriteToPNGContainer"; $Image);
$Error = MBS("GMImage.Destroy";$Image)
];
$Result)

See also

Example Databases

Created 18th August 2014, last changed 18th August 2014


GMImage.MultiplyChannel   -   GMImage.New

Feedback: Report problem or ask question.




Links
MBS Xojo blog