Parameters of Color Conversion (spec)ΒΆ
Description
convert_spec
class contains an alpha-channel values and might contain any additional parameters for conversion.
-
template<typename DataT>
class oneapi::ipl::convert_spec Color conversion parameters.
- Template Parameters
DataT β destination image data type
Public Functions
-
constexpr convert_spec(DataT a_value = max_color_v<DataT>) noexcept
Construct convert specification with provided parameter of same data type for alpha channel.
- Parameters
a_value β value to fill alpha channel of result RGBA image
-
template<typename OtherDataT, std::enable_if_t<std::is_arithmetic_v<OtherDataT>, std::uint32_t> = 0U>
explicit constexpr convert_spec(OtherDataT a_value) Construct convert specification with provided parameter of different data type for alpha channel.
- Parameters
a_value β value to fill alpha channel of result RGBA image
-
constexpr DataT get_alpha_value() const noexcept
Getter for alpha channel value.
- Returns
alpha channel value