BorderInformationResource.Width
BorderInformationResource.Width property
Ruft die Rahmenbreite ab oder legt sie fest.
public double Width { get; set; }
Beispiele
Das folgende Beispiel veranschaulicht die Unterstützung der BorderInformationResource-Ressource.
[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;
}
}
// BorderInformationResource aktualisieren
borderInfoResource.Width = 0.1;
borderInfoResource.Unit = PhysicalUnit.Inches;
image.Save(outputFilePath);
}
Siehe auch
- class BorderInformationResource
- namensraum Aspose.PSD.FileFormats.Psd.Resources
- Montage Aspose.PSD