xtd 1.0.0
Loading...
Searching...
No Matches
encoder.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/guid>
6#include <xtd/iequatable>
7#include <xtd/object>
8
10namespace xtd {
12 namespace drawing {
15 namespace imaging {
37 class encoder final : public object, public xtd::iequatable<encoder> {
38 public:
40
44 explicit encoder(const xtd::guid& guid);
46
48 encoder() = default;
49 encoder(encoder&&) = default;
50 encoder(const encoder&) = default;
51 encoder& operator =(encoder&&) = default;
52 encoder& operator =(const encoder&) = default;
54
56
72 [[nodiscard]] static auto chrominance_table() noexcept -> encoder;
73
88 [[nodiscard]] static auto color_depth() noexcept -> encoder;
89
104 [[nodiscard]] static auto compression() noexcept -> encoder;
105
120 [[nodiscard]] static auto luminance_table() noexcept -> encoder;
121
136 [[nodiscard]] static auto quality() noexcept -> encoder;
137
152 [[nodiscard]] static auto render_method() noexcept -> encoder;
153
168 [[nodiscard]] static auto save_flag() noexcept -> encoder;
169
184 [[nodiscard]] static auto scan_method() noexcept -> encoder;
185
200 [[nodiscard]] static auto transformation() noexcept -> encoder;
201
216 [[nodiscard]] static auto version() noexcept -> encoder;
218
220
224 [[nodiscard]] auto guid() const noexcept -> const xtd::guid&;
226
228
233 [[nodiscard]] auto equals(const object& obj) const noexcept -> bool override;
237 [[nodiscard]] auto equals(const encoder& other) const noexcept -> bool override;
238
241 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
243
244 private:
245 xtd::guid guid_;
246 };
247 }
248 }
249}
static auto quality() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the quality parameter c...
auto equals(const object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
static auto save_flag() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the save flag category.
static auto compression() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the compression paramet...
static auto transformation() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the transformation cate...
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
static auto luminance_table() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the luminance table par...
static auto version() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the version category.
static auto chrominance_table() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the chrominance table p...
encoder(const xtd::guid &guid)
Initializes a new instance of the xtd::drawing::imaging::encoder class from the specified globally un...
auto guid() const noexcept -> const xtd::guid &
Gets a globally unique identifier (GUID) that identifies an image encoder parameter category.
static auto render_method() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the renderer method cat...
static auto scan_method() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the scan method categor...
static auto color_depth() noexcept -> encoder
An Encoder object that is initialized with the globally unique identifier for the color depth paramet...
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition guid.hpp:23
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
object()=default
Create a new instance of the ultimate base class object.
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
@ other
The operating system is other.
Definition platform_id.hpp:60
The xtd::drawing::imaging namespace provides advanced GDI+ imaging functionality. Basic graphics func...
Definition bitmap_data.hpp:15
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8