Render Project to Multipage TIFF
Contents
[
Hide
Show
]Aspose.Tasks for .NET lets you render Gantt chart to multipage TIFFs. The SaveFileFormat enumeration contains the available output options, including TIFF. The project can be rendered to TIFF with or without compression; supported compression schemes are RLE, CCITT3, CCITT4 and LZW.
Rendering to Multipage TIFF
The following code sample:
- Reads a project file.
- Sets the output file format.
- Applies compression and saves an image to disk.
- Removes compression and saves an image to disk.
1Project project = new Project("New Project.mpp");
2
3// Save the project to TIFF
4project.Save("RenderMultipageTIFF_out.tif", SaveFileFormat.TIFF);
5
6// Save the project with CCITT4 compression
7ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.TIFF);
8options.TiffCompression = TiffCompression.Ccitt4;
9project.Save("RenderMultipageTIFF_options_out.tif", (SaveOptions)options);
10
11// Remove the compression
12options.TiffCompression = TiffCompression.None;
13project.Save("RenderMultipageTIFF_comp_none_out.tif", (SaveOptions)options);