In this step by step tutorial, we’ll explain how to convert EPS to TIFF in C#. An EPS file is Adobe’s Encapsulated PostScript format containing the drawings. Aspose.Page for .NET lets you convert EPS to TIFF in C# code in a few steps.
The Steps to Convert EPS to TIFF in C#
- Install Aspose.Page for .NET package from NuGet.org
- Include Aspose.Page, Aspose.Page.EPS, and Aspose.Page.EPS.Device namespaces
- Use SetLicense method to apply API license
- Load EPS file into PsDocument object
- Create ImageDevice object using TIFF image format
- Set ImageSaveOptions as you prefer
- Save the EPS document to TIFF image device created above
- Read bytes array from image device and save as tiff image
From the above steps, we notice that the PsDocument object renders the EPS document as image bytes to the TIFF image device. This image device later helps us render those image bytes as TIFF image.
Code to Convert EPS to TIFF in C#
In the above code snippet, we can see that in a few steps we understood how to convert EPS to TIFF using c# code. Using this code, you can create an EPS to TIFF converter in any of your .NET applications including Web, Desktop, Windows, and Services etc.