ImageSaveOptions.PaperColor
ImageSaveOptions PaperColor property. Gets or sets the background paper color for the generated images.
ImageSaveOptions.PaperColor property
Gets or sets the background (paper) color for the generated images.
The default value is White.
public Color PaperColor { get; set; }
Remarks
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.
Examples
Shows how to merge several documents using fluent API and save the result as a single image.
ImageSaveOptions imageSaveOptions = new ImageSaveOptions(SaveFormat.Png);
imageSaveOptions.PageLayout = MultiPageLayout.Grid(2, 10, 10);
imageSaveOptions.PaperColor = Color.White;
imageSaveOptions.PageLayout.BackColor = Color.Gray;
imageSaveOptions.PageLayout.BorderColor = Color.Black;
imageSaveOptions.PageLayout.BorderWidth = 2;
Merger.Create()
.From(MyDir + "Merger.docx")
.From(MyDir + "Merger.doc")
.From(MyDir + "Merger.rtf")
.To(ArtifactsDir + "Merger.Grid.png", imageSaveOptions)
.Execute();
See Also
- class ImageSaveOptions
- namespace Wordize.Saving
- assembly Wordize