xtd 0.2.0
Loading...
Searching...
No Matches
encoder_parameter.h
Go to the documentation of this file.
1
4#pragma once
5#include "encoder.h"
7#include <xtd/iequatable>
8
10namespace xtd {
12 namespace drawing {
15 namespace imaging {
22 class encoder_parameter final : public object, public xtd::iequatable<encoder_parameter> {
23 public:
25
80 encoder_parameter(const xtd::drawing::imaging::encoder& encoder, int32 numerator1, int32 denominator1, int32 numerator2, int32 denominator2);
85 encoder_parameter(const xtd::drawing::imaging::encoder& encoder, std::vector<int32> numerator, std::vector<int32> denominator);
90 encoder_parameter(const xtd::drawing::imaging::encoder& encoder, std::vector<int64> rangebegin, std::vector<int64> rangeend);
97
99 encoder_parameter() = default;
100 encoder_parameter(const encoder_parameter&) = default;
101 encoder_parameter& operator =(const encoder_parameter&) = default;
103
104
106
114 encoder_parameter& encoder(const xtd::drawing::imaging::encoder& value);
115
118 size_t number_of_values() const noexcept;
119
122 xtd::drawing::imaging::encoder_parameter_value_type value_type() const noexcept;
123
126 const std::vector<xtd::byte>& value() const noexcept;
128
130
132 using object::equals;
133 bool equals(const encoder_parameter& value) const noexcept override;
135
136 private:
137 xtd::drawing::imaging::encoder encoder_;
138
139 size_t number_of_values_ = 0;
140
141 xtd::drawing::imaging::encoder_parameter_value_type type_ = static_cast<xtd::drawing::imaging::encoder_parameter_value_type>(0);
142
143 std::vector<xtd::byte> value_;
144 };
145 }
146 }
147}
Represents text as a sequence of character units.
Definition basic_string.h:79
Used to pass a value, or an array of values, to an image encoder.
Definition encoder_parameter.h:22
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, std::vector< 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, std::vector< 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, int32 numerator1, int32 denominator1, int32 numerator2, int32 denominator2)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
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, int16 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, std::vector< 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, std::vector< int64 > rangebegin, std::vector< int64 > rangeend)
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.
size_t number_of_values() const noexcept
Gets the number of elements in the array of values stored in this xtd::drawing::imaging::encoder_para...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, std::vector< 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)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified x...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, int32 number_values, xtd::drawing::imaging::encoder_parameter_value_type type, const std::vector< 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, const xtd::string &value)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified x...
const std::vector< xtd::byte > & value() const noexcept
Gets The data value.
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, std::vector< int64 > 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, 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, std::vector< int32 > numerator, std::vector< int32 > denominator)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified E...
encoder_parameter(const xtd::drawing::imaging::encoder &encoder, int32 numerator, 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.h:38
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
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.h:23
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.h:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.h:23
std::type_info type
Stores information about a type.
Definition type.h:23
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.h:20
@ undefined
The pixel format is undefined.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10