24-bit HSL pixel. More...
#include <SimdPixel.hpp>
Public Member Functions | |
Hsl24 (const uint8_t &gray=uint8_t(0)) | |
Hsl24 (const uint8_t &h, const uint8_t &s, const uint8_t &l) | |
Hsl24 (const Hsl24 &p) | |
Static Public Member Functions | |
template<template< class > class A> | |
static const Hsl24 & | At (const View< A > &view, ptrdiff_t col, ptrdiff_t row) |
template<template< class > class A> | |
static Hsl24 & | At (View< A > &view, ptrdiff_t col, ptrdiff_t row) |
Data Fields | |
uint8_t | hue |
8-bit hue channel 24-bit HSL pixel. | |
uint8_t | saturation |
8-bit saturation channel 24-bit HSL pixel. | |
uint8_t | lightness |
8-bit lightness channel 24-bit HSL pixel. | |
Detailed Description
24-bit HSL pixel.
Provides manipulation of 24-bit HSL (Hue, Saturation, Lightness) pixels of the View struct.
Constructor & Destructor Documentation
◆ Hsl24() [1/3]
SIMD_INLINE Hsl24 | ( | const uint8_t & | gray = uint8_t(0) | ) |
Creates a new 24-bit HSL pixel structure with specified channel values.
- Parameters
-
[in] gray - initial value for value channel. It is equal to 0 by default.
◆ Hsl24() [2/3]
SIMD_INLINE Hsl24 | ( | const uint8_t & | h, |
const uint8_t & | s, | ||
const uint8_t & | l | ||
) |
Creates a new 24-bit HSL pixel structure with specified channel values.
- Parameters
-
[in] h - initial value for hue channel. [in] s - initial value for saturation channel. [in] l - initial value for lightness channel.
◆ Hsl24() [3/3]
Creates a copy of 24-bit HSL pixel structure.
- Parameters
-
[in] p - 24-bit HSL pixel.
Member Function Documentation
◆ At() [1/2]
|
static |
Gets constant reference to the pixel with specific coordinates at the image view.
- Parameters
-
[in] view - an image view of 24-bit HSL pixel format. [in] col - x-coordinate of the pixel. [in] row - y-coordinate of the pixel.
- Returns
- a constant reference to the pixel.
◆ At() [2/2]
|
static |
Gets reference to the pixel with specific coordinates at the image view.
- Parameters
-
[in] view - an image view of 24-bit HSL pixel format. [in] col - x-coordinate of the pixel. [in] row - y-coordinate of the pixel.
- Returns
- a reference to the pixel.