ToJpeg()

Convert::ToJpeg(System::SharedPtr<Presentation>, System::String) method

Converts the input presentation to a set of JPEG format images.

If the output file name is given as "myPath/myFilename.jpeg", the result will be saved as a set of "myPath/myFilename_N.jpeg" files, where N is a slide number.

static void Aspose::Slides::LowCode::Convert::ToJpeg(System::SharedPtr<Presentation> pres, System::String outputFileName)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>The input presentation.
outputFileNameSystem::StringThe output file name.

Remarks

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
Convert::ToJpeg(pres, u"presImage.jpeg");

Convert::ToJpeg(System::SharedPtr<Presentation>, System::String, System::Drawing::Size) method

Converts the input presentation to a set of JPEG format images.

If the output file name is given as "myPath/myFilename.jpeg", the result will be saved as a set of "myPath/myFilename_N.jpeg" files, where N is a slide number.

static void Aspose::Slides::LowCode::Convert::ToJpeg(System::SharedPtr<Presentation> pres, System::String outputFileName, System::Drawing::Size imageSize)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>The input presentation
outputFileNameSystem::StringThe output file name.
imageSizeSystem::Drawing::SizeThe size of each generated image.

Remarks

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
Convert::ToJpeg(pres, u"presImage.jpeg", System::Drawing::Size(720, 540));

Convert::ToJpeg(System::SharedPtr<Presentation>, System::String, float, System::SharedPtr<Aspose::Slides::Export::IRenderingOptions>) method

Converts the input presentation to a set of JPEG format images.

If the output file name is given as "myPath/myFilename.jpeg", the result will be saved as a set of "myPath/myFilename_N.jpeg" files, where N is a slide number.

static void Aspose::Slides::LowCode::Convert::ToJpeg(System::SharedPtr<Presentation> pres, System::String outputFileName, float scale, System::SharedPtr<Aspose::Slides::Export::IRenderingOptions> options)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>The input presentation.
outputFileNameSystem::StringThe output file name.
scalefloatThe scaling factor applied to the output images relative to the original slide size.
optionsSystem::SharedPtr<Aspose::Slides::Export::IRenderingOptions>The rendering options.

Remarks

System::SharedPtr<IRenderingOptions> options = System::MakeObject<RenderingOptions>();
System::SharedPtr<NotesCommentsLayoutingOptions> slidesLayoutOptions = System::MakeObject<NotesCommentsLayoutingOptions>();
slidesLayoutOptions->set_NotesPosition(NotesPositions::BottomTruncated);
options->set_SlidesLayoutOptions(slidesLayoutOptions);

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
Convert::ToJpeg(pres, u"presImage.jpeg", 2.0f, options);

See Also