Aspose::Pdf::Devices::PngDevice class

PngDevice class

Represents image device that helps to save pdf document pages into png.

class PngDevice : public Aspose::Pdf::Devices::ImageDevice

Methods

MethodDescription
get_TransparentBackground() constGets if image has transparent background.
PngDevice()Initializes a new instance of the PngDevice class with default resolution.
PngDevice(const System::SharedPtr<Aspose::Pdf::Devices::Resolution>&)Initializes a new instance of the PngDevice class.
PngDevice(int32_t, int32_t, const System::SharedPtr<Aspose::Pdf::Devices::Resolution>&)Initializes a new instance of the PngDevice class with provided image dimensions and resolution.
PngDevice(const System::SharedPtr<PageSize>&, const System::SharedPtr<Aspose::Pdf::Devices::Resolution>&)Initializes a new instance of the PngDevice class with provided page size and resolution.
PngDevice(int32_t, int32_t)Initializes a new instance of the PngDevice class with provided image dimensions, default resolution (=150).
PngDevice(const System::SharedPtr<PageSize>&)Initializes a new instance of the PngDevice class with provided page size, default resolution (=150).
Process(System::SharedPtr<Page>, System::SharedPtr<System::IO::Stream>) overrideConverts the page into png and saves it in the output stream.
set_TransparentBackground(bool)Sets if image has transparent background.

See Also