How to invert or negate the colors in an image using Salesforce Apex

https://github.com/Cloudmersive/Cloudmersive.APIClient.Apex.ImageRecognition/archive/master.zip
SwagEditApi api = new SwagEditApi();SwagClient client = api.getClient();// Configure API key authorization: ApikeyApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');Apikey.setApiKey('YOUR API KEY');Map<String, Object> params = new Map<String, Object>{'imageFile' => Blob.valueOf('Sample text file\nContents')};try {// cross your fingersBlob result = api.editInvert(params);System.debug(result);} catch (Swagger.ApiException e) {// ...handle your exceptions}

--

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Nvidia For Mac Os X

Last Call for Lambo Ride

Docker Wale Tank

Jarvis+’s biweekly report! 2020.3.9–2020.3.22

Proxy, Reverse Proxy & YARP

Your Linux Setup: A Guide to Distro-hopping

Communicating Science

Scraping a web about recipes — yummly copyCat

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

More from Medium

NAPPING: 1.0.1

Browser Automation for Everyone: Free Tools You Can Use RIGHT NOW To Get Work Done Fast

CakePHP 4 How To Use Application Environment Variables

Odoo Return Order Management from Backend and Frontend