xtd 1.0.0
Loading...
Searching...
No Matches
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;
103
104
106
110 [[nodiscard]] auto encoder() const noexcept -> const xtd::drawing::imaging::encoder&;
114 [[nodiscard]] auto encoder(const xtd::drawing::imaging::encoder& value) -> encoder_parameter&;
115
118 [[nodiscard]] auto number_of_values() const noexcept -> xtd::usize;
119
122 [[nodiscard]] auto type() const noexcept -> xtd::drawing::imaging::encoder_parameter_value_type;
123
126 [[nodiscard]] auto value_type() const noexcept -> xtd::drawing::imaging::encoder_parameter_value_type;
127
130 [[nodiscard]] auto value() const noexcept -> const xtd::collections::generic::list<xtd::byte>&;
132
134
139 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
143 [[nodiscard]] auto equals(const encoder_parameter& other) const noexcept -> bool override;
144
147 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
149
150 private:
151 xtd::drawing::imaging::encoder encoder_;
152 xtd::usize number_of_values_ = 0;
154 xtd::collections::generic::list<xtd::byte> value_;
155 };
156 }
157 }
158}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
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...
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...
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...
auto value() const noexcept -> const xtd::collections::generic::list< xtd::byte > &
Gets The data value.
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...
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...
auto encoder() const noexcept -> const xtd::drawing::imaging::encoder &
Gets the Encoder object associated with this xtd::drawing::imaging::encoder_parameter object....
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...
auto type() const noexcept -> xtd::drawing::imaging::encoder_parameter_value_type
Gets the data type of the values stored in this xtd::drawing::imaging::encoder_parameter object.
auto value_type() const noexcept -> xtd::drawing::imaging::encoder_parameter_value_type
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::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...
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto number_of_values() const noexcept -> xtd::usize
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, xtd::int32 numerator, xtd::int32 denominator)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified x...
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
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:23
object()=default
Create a new instance of the ultimate base class object.
Contains xtd::drawing::imaging::encoder class.
Contains xtd::drawing::imaging::encoder_parameter_value_type class.
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
std::int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
std::uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:60
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.
Definition pixel_format.hpp:25
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
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