BackgroundColorResource.Color
BackgroundColorResource.Color property
Gets or sets the background color.
public Color Color { get; set; }
Examples
The following example demonstrates the support of BackgroundColorResource resource.
[C#]
string sourceFilePath = "input.psd";
string outputFilePath = "output.psd";
using (var image = (PsdImage)Image.Load(sourceFilePath))
{
ResourceBlock[] imageResources = image.ImageResources;
BackgroundColorResource backgroundColorResource = null;
foreach (var imageResource in imageResources)
{
if (imageResource is BackgroundColorResource)
{
backgroundColorResource = (BackgroundColorResource)imageResource;
break;
}
}
// update BackgroundColorResource
backgroundColorResource.Color = Color.DarkRed;
image.Save(outputFilePath);
}
See Also
- struct Color
- class BackgroundColorResource
- namespace Aspose.PSD.FileFormats.Psd.Resources
- assembly Aspose.PSD