BorderInformationResource.MinimalVersion
BorderInformationResource.MinimalVersion property
Gets the minimal required PSD version.
public override int MinimalVersion { get; }
Property Value
The minimal PSD version.
Examples
The following example demonstrates the support of BorderInformationResource resource.
[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;
}
}
// update BorderInformationResource
borderInfoResource.Width = 0.1;
borderInfoResource.Unit = PhysicalUnit.Inches;
image.Save(outputFilePath);
}
See Also
- class BorderInformationResource
- namespace Aspose.PSD.FileFormats.Psd.Resources
- assembly Aspose.PSD