ImageSaveOptionsPaperColor Property |
The default value is White.
Namespace: Aspose.Words.Saving
When rendering pages of a document that specifies its own background color, then the document background color will override the color specified by this property.
Document doc = new Document(MyDir + "Rendering.docx"); ImageSaveOptions imgOptions = new ImageSaveOptions(SaveFormat.Png); imgOptions.PaperColor = Color.Transparent; doc.Save(ArtifactsDir + "Rendering.SaveToImagePaperColor.Transparent.png", imgOptions); imgOptions.PaperColor = Color.LightCoral; doc.Save(ArtifactsDir + "Rendering.SaveToImagePaperColor.Coral.png", imgOptions);