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.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    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 )

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


GMImage.MultiplyChannel   -   GMImage.New

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins