ArtboardLayer.BackgroundColor
Contents
[
Hide
]ArtboardLayer.BackgroundColor property
Gets or sets the artboard background color.
public override Color BackgroundColor { get; set; }
Examples
The following code demonstrates the support of export ArtboardLayer as separate images and all in one image.
[C#]
string srcFile = "artboard2.psd";
string outFilePng0 = "art0.png";
string outFilePng1 = "art1.png";
string outFilePng2 = "art2.png";
string outFilePng3 = "art3.png";
using (var psdImage = (PsdImage)Image.Load(srcFile))
{
ArtboardLayer art1 = (ArtboardLayer)psdImage.Layers[4];
ArtboardLayer art2 = (ArtboardLayer)psdImage.Layers[9];
ArtboardLayer art3 = (ArtboardLayer)psdImage.Layers[14];
var pngSaveOptions = new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha };
art1.Save(outFilePng1, pngSaveOptions);
art2.Save(outFilePng2, pngSaveOptions);
art3.Save(outFilePng3, pngSaveOptions);
psdImage.Save(outFilePng0, pngSaveOptions);
}
See Also
- struct Color
- class ArtboardLayer
- namespace Aspose.PSD.FileFormats.Psd.Layers
- assembly Aspose.PSD