BackgroundColorResource.MinimalVersion

BackgroundColorResource.MinimalVersion property

Gereken minimum PSD sürümünü alır.

public override int MinimalVersion { get; }

Mülk değeri

Minimum PSD sürümü.

Örnekler

Aşağıdaki örnek, BackgroundColorResource kaynağının desteğini göstermektedir.

[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;
        }
    }

    // BackgroundColorResource'u güncelle
    backgroundColorResource.Color = Color.DarkRed;

    image.Save(outputFilePath);
}

Ayrıca bakınız