BorderInformationResource.MinimalVersion
BorderInformationResource.MinimalVersion property
Ottiene la versione PSD minima richiesta.
public override int MinimalVersion { get; }
Valore della proprietà
La versione minima del PSD.
Esempi
L’esempio seguente dimostra il supporto della risorsa BorderInformationResource.
[C#]
string sourceFilePath = "input.psd";
string outputFilePath = "output.psd";
using (var image = (PsdImage)Image.Load(sourceFilePath))
{
ResourceBlock[] imageResources = image.ImageResources;
BorderInformationResource borderInfoResource = null;
foreach (var imageResource in imageResources)
{
if (imageResource is BorderInformationResource)
{
borderInfoResource = (BorderInformationResource)imageResource;
break;
}
}
// aggiorna BorderInformationResource
borderInfoResource.Width = 0.1;
borderInfoResource.Unit = PhysicalUnit.Inches;
image.Save(outputFilePath);
}
Guarda anche
- class BorderInformationResource
- spazio dei nomi Aspose.PSD.FileFormats.Psd.Resources
- assemblea Aspose.PSD