These snippets illustrate obtaining the size and bounding box of an EPS image, resizing and cropping the EPS with Aspose.Page for .NET. Adjust artwork dimensions in different measure units, scale proportionally, or crop to specific rectangles while preserving vector quality.
- Get the original size and resize the EPS to the target width/height assigned in points.
- Obtain the existing size and resize EPS, assigning new dimensions in inches.
- Get the original size and resize the EPS with the new width/height assigned in millimeters.
- Obtain the existing size and resize EPS, assigning new dimensions as a percentage of the original ones.
- Get the original bounding box and the top EPS to a region of interest.
- Reference Aspose.Page for .NET: Aspose.Page on Windows; Aspose.Page.Drawing on non‑Windows.
- Copy a snippet into your project or run the related test.
- Apply a temporary license as described in the licensing guide.
- Build and run.
In evaluation mode, the input EPS file is limited to 500Kb. Apply a valid license to enable full functionality.
Further information about resizing and cropping EPS can be found in Resize EPS | .NET API Solution and Crop EPS | C# .NET API Solution chapters of the public documentation.
- Documentation – Aspose.Page for .NET
- Product page – Aspose.Page for .NET
- Free Support Forum – Aspose.Page
- Blog – Aspose.Page Product Family
- API Reference – Aspose.Page for .NET
- NuGet (Windows) – Aspose.Page
- NuGet (non‑Windows) – Aspose.Page for .NET
- .NET 6.0+, .NET Core, or .NET Framework
- Aspose.Page for .NET library