ToPng()
Contents
[
Hide
]Convert::ToPng(System::SharedPtr<Presentation>, System::String) method
Converts the input presentation to a set of PNG format images.
If the output file name is given as "myPath/myFilename.png", the result will be saved as a set of "myPath/myFilename_N.png" files, where N is a slide number.
static void Aspose::Slides::LowCode::Convert::ToPng(System::SharedPtr<Presentation> pres, System::String outputFileName)
Arguments
| Parameter | Type | Description |
|---|---|---|
| pres | System::SharedPtr<Presentation> | The input presentation. |
| outputFileName | System::String | The output file name. |
Remarks
auto pres = System::MakeObject<Presentation>(u"pres.pptx");
Convert::ToPng(pres, u"presImage.png");
Convert::ToPng(System::SharedPtr<Presentation>, System::String, System::Drawing::Size) method
Converts the input presentation to a set of PNG format images.
If the output file name is given as "myPath/myFilename.png", the result will be saved as a set of "myPath/myFilename_N.png" files, where N is a slide number.
static void Aspose::Slides::LowCode::Convert::ToPng(System::SharedPtr<Presentation> pres, System::String outputFileName, System::Drawing::Size imageSize)
Arguments
| Parameter | Type | Description |
|---|---|---|
| pres | System::SharedPtr<Presentation> | The input presentation |
| outputFileName | System::String | The output file name. |
| imageSize | System::Drawing::Size | The size of each generated image. |
Remarks
auto pres = System::MakeObject<Presentation>(u"pres.pptx");
Convert::ToPng(pres, u"presImage.png", System::Drawing::Size(720, 540));
Convert::ToPng(System::SharedPtr<Presentation>, System::String, float, System::SharedPtr<Aspose::Slides::Export::IRenderingOptions>) method
Converts the input presentation to a set of PNG format images.
If the output file name is given as "myPath/myFilename.png", the result will be saved as a set of "myPath/myFilename_N.png" files, where N is a slide number.
static void Aspose::Slides::LowCode::Convert::ToPng(System::SharedPtr<Presentation> pres, System::String outputFileName, float scale, System::SharedPtr<Aspose::Slides::Export::IRenderingOptions> options)
Arguments
| Parameter | Type | Description |
|---|---|---|
| pres | System::SharedPtr<Presentation> | The input presentation. |
| outputFileName | System::String | The output file name. |
| scale | float | The scaling factor applied to the output images relative to the original slide size. |
| options | System::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::ToPng(pres, u"presImage.png", 2.0f, options);
See Also
- Typedef SharedPtr
- Class Presentation
- Class String
- Class Convert
- Class Size
- Class IRenderingOptions
- Namespace Aspose::Slides::LowCode
- Library Aspose.Slides