GroupDocsGists
10/19/2017 - 11:31 AM

UpdateCameraRawXmpPropertiesGifImage.cs

//For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET
// initialize GifFormat
GifFormat GifFormat = new GifFormat(Common.MapSourceFilePath(filePath));

// get access to CameraRaw schema
var package = GifFormat.XmpValues.Schemes.CameraRaw;

// update properties
package.AutoBrightness = true;
package.AutoContrast = true;
package.CropUnits = CropUnits.Pixels;

// update white balance
package.SetWhiteBalance(WhiteBalance.Auto);

// commit changes
GifFormat.Save(Common.MapDestinationFilePath(filePath));