xtd 0.2.0
encoder_parameter.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "encoder.hpp"
7#include <xtd/collections/generic/list>
8#include <xtd/iequatable>
9
11namespace xtd {
13 namespace drawing {
16 namespace imaging {
23 class encoder_parameter final : public object, public xtd::iequatable<encoder_parameter> {
24 public:
26
81 encoder_parameter(const xtd::drawing::imaging::encoder& encoder, xtd::int32 numerator1, xtd::int32 denominator1, xtd::int32 numerator2, xtd::int32 denominator2);
99
101 encoder_parameter() = default;
102 encoder_parameter(const encoder_parameter&) = default;
103 encoder_parameter& operator =(const encoder_parameter&) = default;
105
106
108
116 encoder_parameter& encoder(const xtd::drawing::imaging::encoder& value);
117
120 xtd::size number_of_values() const noexcept;
121
124 xtd::drawing::imaging::encoder_parameter_value_type type() const noexcept;
125
128 xtd::drawing::imaging::encoder_parameter_value_type value_type() const noexcept;
129
132 const xtd::collections::generic::list<xtd::byte>& value() const noexcept;
134
136
141 bool equals(const xtd::object& obj) const noexcept override;
145 bool equals(const encoder_parameter& other) const noexcept override;
146
149 xtd::size get_hash_code() const noexcept override;
151
152 private:
153 xtd::drawing::imaging::encoder encoder_;
154 xtd::size number_of_values_ = 0;
155 xtd::drawing::imaging::encoder_parameter_value_type type_ = static_cast<xtd::drawing::imaging::encoder_parameter_value_type>(0);
156 xtd::collections::generic::list<xtd::byte> value_;
157 };
158 }
159 }
160}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents text as a sequence of character units.
Definition basic_string.hpp:71
Used to pass a value, or an array of values, to an image encoder.
Definition encoder_parameter.hpp:23
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::array< xtd::byte > value, bool undefined)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
xtd::size number_of_values() const noexcept
Gets the number of elements in the array of values stored in this xtd::drawing::imaging::encoder_para...
const xtd::drawing::imaging::encoder & encoder() const noexcept
Gets the Encoder object associated with this xtd::drawing::imaging::encoder_parameter object....
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::int64 value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified x...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::array< xtd::int64 > value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::array< xtd::byte > value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::array< xtd::int32 > numerator, xtd::array< xtd::int32 > denominator)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
xtd::drawing::imaging::encoder_parameter_value_type value_type() const noexcept
Gets the data type of the values stored in this xtd::drawing::imaging::encoder_parameter object.
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::array< xtd::int32 > value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::byte value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified x...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::int16 value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified x...
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, const xtd::string &value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified x...
const xtd::collections::generic::list< xtd::byte > & value() const noexcept
Gets The data value.
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::int32 numerator1, xtd::int32 denominator1, xtd::int32 numerator2, xtd::int32 denominator2)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::array< xtd::int64 > rangebegin, xtd::array< xtd::int64 > rangeend)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::array< xtd::int16 > value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::byte value, bool undefined)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::int32 number_values, xtd::drawing::imaging::encoder_parameter_value_type type, const xtd::array< xtd::byte > &value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, xtd::int32 numerator, xtd::int32 denominator)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified x...
An Encoder object encapsulates a globally unique identifier (GUID) that identifies the category of an...
Definition encoder.hpp:37
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:43
Contains xtd::drawing::imaging::encoder class.
Contains xtd::drawing::imaging::encoder_parameter_value_type class.
int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
std::type_info type
Stores information about a type.
Definition type.hpp:23
@ other
The operating system is other.
encoder_parameter_value_type
Specifies the data type of the xtd::drawing::imaging::encoder_parameter used with the xtd::drawing::i...
Definition encoder_parameter_value_type.hpp:20
@ undefined
The pixel format is undefined.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31