PngDevice.h
1 #pragma once
2 // Copyright (c) 2001-2022 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include "Aspose.PDF.Cpp/Devices/ImageDevice.h"
5 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
6 
7 namespace Aspose
8 {
9 namespace Pdf
10 {
11 namespace Devices
12 {
13 class Resolution;
14 } // namespace Devices
15 class Page;
16 class PageSize;
17 } // namespace Pdf
18 } // namespace Aspose
19 namespace System
20 {
21 namespace IO
22 {
23 class Stream;
24 } // namespace IO
25 } // namespace System
26 
27 namespace Aspose {
28 
29 namespace Pdf {
30 
31 namespace Devices {
32 
36 class ASPOSE_PDF_SHARED_CLASS PngDevice final : public Aspose::Pdf::Devices::ImageDevice
37 {
38  typedef PngDevice ThisType;
40 
41  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
42  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
43 
44 public:
45 
49  ASPOSE_PDF_SHARED_API bool get_TransparentBackground() const;
53  ASPOSE_PDF_SHARED_API void set_TransparentBackground(bool value);
54 
58  ASPOSE_PDF_SHARED_API PngDevice();
65  ASPOSE_PDF_SHARED_API PngDevice(System::SharedPtr<Aspose::Pdf::Devices::Resolution> resolution);
79  ASPOSE_PDF_SHARED_API PngDevice(int32_t width, int32_t height, System::SharedPtr<Aspose::Pdf::Devices::Resolution> resolution);
90  ASPOSE_PDF_SHARED_API PngDevice(System::SharedPtr<PageSize> pageSize, System::SharedPtr<Aspose::Pdf::Devices::Resolution> resolution);
91 
101  ASPOSE_PDF_SHARED_API void Process(System::SharedPtr<Page> page, System::SharedPtr<System::IO::Stream> output) override;
102 
113  ASPOSE_PDF_SHARED_API PngDevice(int32_t width, int32_t height);
121  ASPOSE_PDF_SHARED_API PngDevice(System::SharedPtr<PageSize> pageSize);
122 
123 private:
124 
125  bool pr_TransparentBackground;
126 
127 };
128 
129 } // namespace Devices
130 } // namespace Pdf
131 } // namespace Aspose
132 
133 
An abstract class for image devices.
Definition: ImageDevice.h:54
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:67
Definition: reflection.h:29
Represents image device that helps to save pdf document pages into png.
Definition: PngDevice.h:36
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Abstract class for all types of devices. Device is used to represent pdf document in some format...
Definition: Device.h:26
Definition: AFRelationship.h:4
The coordinates are in the page coordinate context.
Whole PDF file will be submitted.