Enum PsdVersion

PsdVersion enumeration

Versione formato file

public enum PsdVersion : byte

I valori

NomeValoreDescrizione
Psd1La versione PSD predefinita.
Psb2La versione PSB.

Esempi

L’esempio seguente mostra la possibilità di convertire file PSD in PSB e viceversa.

[C#]

string sourceFilePathPsb = "2layers.psb";
string outputFilePathPsd = "ConvertFromPsb.psd";
using (Image img = Image.Load(sourceFilePathPsb))
{
    var options = new PsdOptions((PsdImage)img) { PsdVersion = PsdVersion.Psd };
    img.Save(outputFilePathPsd, options);
}

string sourceFilePathPsd = "2layers.psd";
string outputFilePathPsb = "ConvertFromPsd.psb";
using (Image img = Image.Load(sourceFilePathPsd))
{
    var options = new PsdOptions((PsdImage)img) { PsdVersion = PsdVersion.Psb };
    img.Save(outputFilePathPsb, options);
}

Guarda anche