xtd - Reference Guide 0.2.0
encoder_parameters.h
Go to the documentation of this file.
1 #pragma once
5 #include <cstdint>
6 #include <ostream>
7 #include <xtd/iequatable.h>
8 #include "encoder_parameter.h"
9 
11 namespace 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  bool equals(const encoder_parameters& value) const noexcept override {return params_ == value.params_;}
61 
62  private:
63  std::vector<xtd::drawing::imaging::encoder_parameter> params_;
64  };
65  }
66  }
67 }
std::vector< xtd::drawing::imaging::encoder_parameter > & params() noexcept
Gets an array of EncoderParameter objects.
Definition: encoder_parameters.h:50
Used to pass a value, or an array of values, to an image encoder.
Definition: encoder_parameter.h:22
Contains xtd::iequatable interface.
const std::vector< xtd::drawing::imaging::encoder_parameter > & params() const noexcept
Gets an array of EncoderParameter objects.
Definition: encoder_parameters.h:47
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Encapsulates an array of EncoderParameter objects.
Definition: encoder_parameters.h:23
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:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:31
encoder_parameters()
Initializes a new instance of the xtd::drawing::imaging::encoder_parameters class that can contain on...
Definition: encoder_parameters.h:30
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
Contains xtd::drawing::imaging::encoder_parameter class.