PPT to TIFF using C++

Tagged Image File Format (TIFF) is an image format that is commonly used for print purposes due to its high quality. There might be cases where you need to convert your PPTX files to TIFF format for printing purposes. For that, this article will teach you how to convert PowerPoint PPTX/PPT files to TIFF format programmatically using C++.

C++ PowerPoint PPT to TIFF Converter - Free Download

Aspose.Slides for C++ is a C++ API for working with PowerPoint files. It enables you to create, read and modify PPT and PPTX files without needing additional software. Furthermore, the API supports converting PPTX/PPT files to TIFF image format. You can either install the API through NuGet or download it directly from the Downloads section.

PM> Install-Package Aspose.Slides.Cpp

Convert PPT to TIFF in C++

You can convert your PowerPoint PPTX/PPT files to TIFF format in just a few lines of code. To achieve that, please follow the steps given below.

The following sample code shows how to convert PPT to TIFF format using C++.

C++ PPTX to TIFF - Custom Image Size

The following are the steps to convert PowerPoint files to TIFF format with custom image size.

The following sample code shows how to convert PPTX to TIFF with custom image size in C++.

C++ PowerPoint PPT to TIFF - Custom Pixel Format

In order to set the pixel format, we will use the ImagePixelFormat enum. The ImagePixelFormat enum provides the following values.

  • Format1bppIndexed: 1 bit per pixel, indexed
  • Format4bppIndexed: 4 bits per pixel, indexed
  • Format8bppIndexed: 8 bits per pixel, indexed
  • Format24bppRgb: 24 bits per pixel, RGB
  • Format32bppArgb: 32 bits per pixel, ARGB

The following are the steps to convert a PPTX/PPT file to a TIFF image with custom pixel format using C++.

The following sample code shows how to convert PowerPoint PPT to TIFF in C++ with custom pixel format.

PPTX to TIFF C++ Converter - Get a Free License

In order to use the API without evaluation limitations, you can get a free temporary license.

Conclusion

In this article, you have learned how to convert PowerPoint PPT to TIFF images in C++. Furthermore, you have learned how to set the custom image size and pixel format in PPT to TIFF conversion. Besides, Aspose.Slides for C++ is a powerful API for working with PowerPoint files. You can explore the API in detail by visiting the official documentation. In case of any queries, please feel free to reach us at our free support forum.

See Also

Tip: You may want to check out Aspose FREE online PowerPoint to Poster Converter.