xtd 0.2.0
encoder.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/guid>
6 #include <xtd/iequatable>
7 #include <xtd/object>
8 #include <cstdint>
9 #include <ostream>
10 
12 namespace xtd {
14  namespace drawing {
17  namespace imaging {
38  class encoder final : public object, public xtd::iequatable<encoder> {
39  public:
41 
45  explicit encoder(const xtd::guid& guid) : guid_(guid) {}
47 
49  encoder() = default;
50  encoder(const encoder&) = default;
51  encoder& operator =(const encoder&) = default;
53 
54 
56 
72  static encoder chrominance_table() noexcept {return encoder(xtd::guid("f2e455dc-09b3-4316-8260-676ada32481c"));}
73 
88  static encoder color_depth() noexcept {return encoder(xtd::guid("66087055-ad66-4c7c-9a18-38a2310b8337"));}
89 
104  static encoder compression() noexcept {return encoder(xtd::guid("e09d739d-ccd4-44ee-8eba-3fbf8be4fc58"));}
105 
120  static encoder luminance_table() noexcept {return encoder(xtd::guid("edb33bce-0266-4a77-b904-27216099e717"));}
121 
136  static encoder quality() noexcept {return encoder(xtd::guid("1d5be4b5-fa4a-452d-9cdd-5db35105e7eb"));}
137 
152  static encoder render_method() noexcept {return encoder(xtd::guid("6d42c53a-229a-4825-8bb7-5c99e2b9a8b8"));}
153 
168  static encoder save_flag() noexcept {return encoder(xtd::guid("292266fc-ac40-47bf-8cfc-a85b89a655de"));}
169 
184  static encoder scan_method() noexcept {return encoder(xtd::guid("3a4e2661-3109-4e56-8536-42c156e7dcfa"));}
185 
200  static encoder transformation() noexcept {return encoder(xtd::guid("8d0eb2d1-a58e-4ea8-aa14-108074b7b6f9"));}
201 
216  static encoder version() noexcept {return encoder(xtd::guid("24d18c76-814a-41a4-bf53-1c219cccf797"));}
218 
220 
224  const xtd::guid& guid() const noexcept {return guid_;}
226 
228 
230  bool equals(const encoder& value) const noexcept override {return guid_ == value.guid_;}
232 
233  private:
234  xtd::guid guid_;
235  };
236  }
237  }
238 }
static encoder version() noexcept
An Encoder object that is initialized with the globally unique identifier for the version category...
Definition: encoder.h:216
static encoder transformation() noexcept
An Encoder object that is initialized with the globally unique identifier for the transformation cate...
Definition: encoder.h:200
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
static encoder color_depth() noexcept
An Encoder object that is initialized with the globally unique identifier for the color depth paramet...
Definition: encoder.h:88
static encoder scan_method() noexcept
An Encoder object that is initialized with the globally unique identifier for the scan method categor...
Definition: encoder.h:184
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
static encoder save_flag() noexcept
An Encoder object that is initialized with the globally unique identifier for the save flag category...
Definition: encoder.h:168
static encoder quality() noexcept
An Encoder object that is initialized with the globally unique identifier for the quality parameter c...
Definition: encoder.h:136
An Encoder object encapsulates a globally unique identifier (GUID) that identifies the category of an...
Definition: encoder.h:38
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition: guid.h:23
encoder(const xtd::guid &guid)
Initializes a new instance of the xtd::drawing::imaging::encoder class from the specified globally un...
Definition: encoder.h:45
const xtd::guid & guid() const noexcept
Gets a globally unique identifier (GUID) that identifies an image encoder parameter category...
Definition: encoder.h:224
static encoder chrominance_table() noexcept
An Encoder object that is initialized with the globally unique identifier for the chrominance table p...
Definition: encoder.h:72
static encoder render_method() noexcept
An Encoder object that is initialized with the globally unique identifier for the renderer method cat...
Definition: encoder.h:152
static encoder luminance_table() noexcept
An Encoder object that is initialized with the globally unique identifier for the luminance table par...
Definition: encoder.h:120
static encoder compression() noexcept
An Encoder object that is initialized with the globally unique identifier for the compression paramet...
Definition: encoder.h:104