Enum PsdVersion
PsdVersion enumeration
Versione formato file
public enum PsdVersion : byte
I valori
Nome | Valore | Descrizione |
---|---|---|
Psd | 1 | La versione PSD predefinita. |
Psb | 2 | La 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
- spazio dei nomi Aspose.PSD.FileFormats.Psd
- assemblea Aspose.PSD