---
title: "System::Drawing::Imaging::EncoderParameter::EncoderParameter constructor"
url: "https://reference.aspose.com/pdf/cpp/system.drawing.imaging/encoderparameter/encoderparameter/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Drawing::Imaging::EncoderParameter::EncoderParameter constructor. Constructs a new instance of EncoderParameter class in C++."
---

## EncoderParameter::EncoderParameter() constructor


Constructs a new instance of [EncoderParameter](../) class.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter()
```

## See Also

* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, const ArrayPtr\<int16_t\>\&) constructor


Constructs a new instance of [EncoderParameter](../) class that represents an array of values.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, const ArrayPtr<int16_t> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| value | const ArrayPtr\<int16_t\>\& | An array of 16-bit integer values to be represted by the object being created |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, const ArrayPtr\<int32_t\>\&, const ArrayPtr\<int32_t\>\&) constructor


Constructs a new instance of [EncoderParameter](../) class that represents an array of fractions.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, const ArrayPtr<int32_t> &numerator, const ArrayPtr<int32_t> &denominator)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| numerator | const ArrayPtr\<int32_t\>\& | An array of numerators of the fractions to be represented by the object being created |
| denominator | const ArrayPtr\<int32_t\>\& | An array of denominators of the fractions to be represented by the object being created |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, const ArrayPtr\<int32_t\>\&, const ArrayPtr\<int32_t\>\&, const ArrayPtr\<int32_t\>\&, const ArrayPtr\<int32_t\>\&) constructor


Constructs a new instance of [EncoderParameter](../) class that represents an array of ranges of fractions.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, const ArrayPtr<int32_t> &numerator1, const ArrayPtr<int32_t> &denominator1, const ArrayPtr<int32_t> &numerator2, const ArrayPtr<int32_t> &denominator2)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| numerator1 | const ArrayPtr\<int32_t\>\& | An array that contains numerators of the smallest fractions of each range |
| numerator2 | const ArrayPtr\<int32_t\>\& | An array that contains numerators of the fractions fractions of each range |
| denominator1 | const ArrayPtr\<int32_t\>\& | An array that contains denominators of the smallest fractions of each range |
| denominator2 | const ArrayPtr\<int32_t\>\& | An array that contains denominators of the largest fractions of each range |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, const ArrayPtr\<int64_t\>\&, const ArrayPtr\<int64_t\>\&) constructor


Constructs a new instance of [EncoderParameter](../) class that represents an array of ranges of integers.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, const ArrayPtr<int64_t> &rangebegin, const ArrayPtr<int64_t> &rangeend)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| rangebegin | const ArrayPtr\<int64_t\>\& | An array that contains the smallest values of each range |
| rangeend | const ArrayPtr\<int64_t\>\& | An arry that contains the largest values of each range |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, const ArrayPtr\<int64_t\>\&) constructor


Constructs a new instance of [EncoderParameter](../) class that represents an array of values.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, const ArrayPtr<int64_t> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| value | const ArrayPtr\<int64_t\>\& | An array of 64-bit integer values to be represted by the object being created |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, const ArrayPtr\<uint8_t\>\&, bool) constructor


Constructs a new instance of [EncoderParameter](../) class that represents an array of values.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, const ArrayPtr<uint8_t> &value, bool undefined=false)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| value | const ArrayPtr\<uint8_t\>\& | An array of unsigend 8-bit integer values to be represted by the object being created |
| undefined | bool | True if the values in **value** array should be treated as having an undefined type, otherwise - false |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, const String\&) constructor


Constructs a new instance of [EncoderParameter](../) class.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, const String &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| value | const String\& | A string to be represted by the object being created |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Class [String](../../../system/string/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, int, EncoderParameterValueType, void *) constructor


Constructs a new instance of [EncoderParameter](../) class that represents the specified number of values of the specified type which are read from the specified buffer.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, int numberValues, EncoderParameterValueType type, void *value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| numberValues | int | Specifies the number of values |
| type | EncoderParameterValueType | Specifies the type of values |
| value | void * | A pointer to the buffer to read the values from |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Enum [EncoderParameterValueType](../../encoderparametervaluetype/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, int16_t) constructor


Constructs a new instance of [EncoderParameter](../) class.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, int16_t value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| value | int16_t | A 16-bit integer value to be represted by the object being created |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, int32_t, int32_t) constructor


Constructs a new instance of [EncoderParameter](../) class that represents a fraction.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, int32_t numerator, int32_t denominator)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| numerator | int32_t | A numerator of the fraction to be represented by the object being created |
| denominator | int32_t | A denominator of the fraction to be represented by the object being created |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, int32_t, int32_t, int32_t, int32_t) constructor


Constructs a new instance of [EncoderParameter](../) class that represents a range of fractions.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, int32_t numerator1, int32_t demoninator1, int32_t numerator2, int32_t demoninator2)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| numerator1 | int32_t | A numerator of the smallest fraction in the range |
| numerator2 | int32_t | A numerator of the largest fraction in the range |
| demoninator1 | int32_t | A denominator of the smallest fraction in the range |
| demoninator2 | int32_t | A denominator of the largest fraction in the range |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, int32_t) constructor


Constructs a new instance of [EncoderParameter](../) class.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, int32_t value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| value | int32_t | A 32-bit integer value to be represted by the object being created |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, int64_t, int64_t) constructor


Constructs a new instance of [EncoderParameter](../) class that represents a range of integer values.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, int64_t rangebegin, int64_t rangeend)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| rangebegin | int64_t | The smallest value in the range |
| rangeend | int64_t | The largest value in the range |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, int64_t) constructor


Constructs a new instance of [EncoderParameter](../) class.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, int64_t value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| value | int64_t | A 64-bit integer value to be represted by the object being created |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
## EncoderParameter::EncoderParameter(const SharedPtr\<Encoder\>\&, uint8_t, bool) constructor


Constructs a new instance of [EncoderParameter](../) class.

```cpp
System::Drawing::Imaging::EncoderParameter::EncoderParameter(const SharedPtr<Encoder> &encoder, uint8_t value, bool undefined=false)
```


| Parameter | Type | Description |
| --- | --- | --- |
| encoder | const SharedPtr\<Encoder\>\& | Specifies the parameter category |
| value | uint8_t | An unsigend 8-bit integer value to be represted by the object being created |
| undefined | bool | True if the **value** should be treated as having an undefined type, otherwise - false |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoder](../../encoder/)
* Class [EncoderParameter](../)
* Namespace [System::Drawing::Imaging](../../)
* Library [Aspose.PDF for C++](../../../)
