xtd 0.2.0
Loading...
Searching...
No Matches
encoder_parameters.h
Go to the documentation of this file.
1
4#pragma once
5#include "encoder_parameter.h"
6#include <xtd/iequatable>
7#include <cstdint>
8#include <ostream>
9
11namespace xtd {
13 namespace drawing {
16 namespace imaging {
23 class encoder_parameters final : public object, public xtd::iequatable<encoder_parameters> {
24 public:
26
30 explicit encoder_parameters() : params_(std::vector<xtd::drawing::imaging::encoder_parameter>(1u, xtd::drawing::imaging::encoder_parameter())) {}
34 explicit encoder_parameters(size_t count) : params_(std::vector<xtd::drawing::imaging::encoder_parameter>(count, xtd::drawing::imaging::encoder_parameter())) {}
36
38 encoder_parameters(const encoder_parameters&) = default;
39 encoder_parameters& operator =(const encoder_parameters&) = default;
41
43
47 const std::vector<xtd::drawing::imaging::encoder_parameter>& params() const noexcept {return params_;}
50 std::vector<xtd::drawing::imaging::encoder_parameter>& params() noexcept {return params_;}
53 void params(const std::vector<xtd::drawing::imaging::encoder_parameter>& value) noexcept {params_ = value;}
55
57
59 using object::equals;
60 bool equals(const encoder_parameters& value) const noexcept override {return params_ == value.params_;}
62
63 private:
64 std::vector<xtd::drawing::imaging::encoder_parameter> params_;
65 };
66 }
67 }
68}
Used to pass a value, or an array of values, to an image encoder.
Definition encoder_parameter.h:22
Encapsulates an array of EncoderParameter objects.
Definition encoder_parameters.h:23
encoder_parameters()
Initializes a new instance of the xtd::drawing::imaging::encoder_parameters class that can contain on...
Definition encoder_parameters.h:30
const std::vector< xtd::drawing::imaging::encoder_parameter > & params() const noexcept
Gets an array of EncoderParameter objects.
Definition encoder_parameters.h:47
std::vector< xtd::drawing::imaging::encoder_parameter > & params() noexcept
Gets an array of EncoderParameter objects.
Definition encoder_parameters.h:50
encoder_parameters(size_t count)
Initializes a new instance of the xtd::drawing::imaging::encoder_parameters class that can contain th...
Definition encoder_parameters.h:34
void params(const std::vector< xtd::drawing::imaging::encoder_parameter > &value) noexcept
Sets an array of EncoderParameter objects.
Definition encoder_parameters.h:53
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
virtual bool equals(const object &obj) const noexcept
Determines whether the specified object is equal to the current object.
Contains xtd::drawing::imaging::encoder_parameter class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10