/Examples-CSharp-GroupDocs.Conversion.Examples.CSharp-Conversion-ConvertToImageWithExtendedOption.cs
Last active
April 1, 2019 11:57
-
-
Save GroupDocsGists/84c57a1baba85299495b2e28cc2915c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-.NET | |
// Instantiating the conversion handler from custom common class | |
ConversionHandler conversionHandler = Common.getConversionHandler(); | |
var saveOptions = new ImageSaveOptions | |
{ | |
FlipMode = FlipModes.FlipX, | |
Brightness = 50, | |
Contrast = 50, | |
Gamma = 0.5F | |
}; | |
// Convert and save image documents. | |
var convertedDocument = conversionHandler.Convert(Common.inputGUIDFile, saveOptions); | |
//convertedDocument.Save("result"); | |
for (int pagenum = 1; pagenum <= convertedDocument.PageCount; pagenum++) | |
{ | |
convertedDocument.Save("result-" + Path.GetFileNameWithoutExtension(Common.inputGUIDFile) + pagenum.ToString() + "." + outputFileType, pagenum); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment