Convert Project Data to JPEG

Contents
[ Hide Show ]

Aspose.Tasks for C++ API lets you save project data to JPEG file format. You can also export the project data to JPEG with specified image quality.

Exporting Project Data to JPEG

1System::SharedPtr<Project> project = System::MakeObject<Project>(dataDir + u"CreateProject2.mpp");
2    
3// in order to manipulate JPEG quality one can use ImageSaveOptions.JpegQuality property.
4// The allowed value range is 0..100.
5auto options = [&]{ auto tmp_0 = System::MakeObject<ImageSaveOptions>(Aspose::Tasks::Saving::SaveFileFormat::JPEG); tmp_0->set_JpegQuality(50); return tmp_0; }();
6    
7project->Save(dataDir + u"image_out.jpeg", System::StaticCast<Aspose::Tasks::Saving::SaveOptions>(options));
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.