rgb_alpha_pixel
これは、アルファチャンネル付きのRGBカラーのグラフィカルピクセルを表す単純な構造体です。
#include <dlib / pixel.h>
struct rgb_alpha_pixel
{
/*!
WHAT THIS OBJECT REPRESENTS
This is a simple struct that represents an RGB colored graphical pixel
with an alpha channel.
!*/
rgb_alpha_pixel (
) {}
rgb_alpha_pixel (
unsigned char red_,
unsigned char green_,
unsigned char blue_,
unsigned char alpha_
) : red(red_), green(green_), blue(blue_), alpha(alpha_) {}
unsigned char red;
unsigned char green;
unsigned char blue;
unsigned char alpha;
};