#include <src/agg/agg_color_rgba.h>
|
| static AGG_INLINE double | to_double (value_type a) |
| |
| static AGG_INLINE value_type | from_double (double a) |
| |
| static AGG_INLINE value_type | empty_value () |
| |
| static AGG_INLINE value_type | full_value () |
| |
| static AGG_INLINE value_type | invert (value_type x) |
| |
| static AGG_INLINE value_type | multiply (value_type a, value_type b) |
| |
| static AGG_INLINE value_type | demultiply (value_type a, value_type b) |
| |
| template<typename T > |
| static AGG_INLINE T | downscale (T a) |
| |
| template<typename T > |
| static AGG_INLINE T | downshift (T a, unsigned n) |
| |
| static AGG_INLINE value_type | mult_cover (value_type a, cover_type b) |
| |
| static AGG_INLINE cover_type | scale_cover (cover_type a, value_type b) |
| |
| static AGG_INLINE value_type | prelerp (value_type p, value_type q, value_type a) |
| |
| static AGG_INLINE value_type | lerp (value_type p, value_type q, value_type a) |
| |
| static self_type | no_color () |
| |
| static self_type | from_wavelength (double wl, double gamma=1) |
| |
◆ calc_type
◆ long_type
◆ self_type
◆ value_type
◆ rgba32() [1/7]
◆ rgba32() [2/7]
1047 :
1048 r(r_),
g(g_),
b(b_),
a(a_) {}
value_type r
Definition agg_color_rgba.h:1038
value_type a
Definition agg_color_rgba.h:1041
value_type b
Definition agg_color_rgba.h:1040
value_type g
Definition agg_color_rgba.h:1039
◆ rgba32() [3/7]
1051 :
1052 r(
c.r),
g(
c.g),
b(
c.b),
a(a_) {}
◆ rgba32() [4/7]
1055 :
float value_type
Definition agg_color_rgba.h:1033
◆ rgba32() [5/7]
◆ rgba32() [6/7]
1066 :
1067 r(sRGB_conv<value_type>::rgb_from_sRGB(
c.r)),
1068 g(sRGB_conv<value_type>::rgb_from_sRGB(
c.g)),
1069 b(sRGB_conv<value_type>::rgb_from_sRGB(
c.b)),
1070 a(sRGB_conv<value_type>::alpha_from_sRGB(
c.a)) {}
◆ rgba32() [7/7]
◆ add()
1293 {
1295 {
1297 {
1299 return;
1300 }
1301 else
1302 {
1307 }
1308 }
1309 else
1310 {
1315 }
1320 }
@ cover_mask
Definition agg_basics.h:242
static AGG_INLINE value_type mult_cover(value_type a, cover_type b)
Definition agg_color_rgba.h:1184
References a, b, agg::cover_mask, g, mult_cover(), and r.
◆ apply_gamma_dir()
template<class GammaLUT >
◆ apply_gamma_inv()
template<class GammaLUT >
◆ clear()
1215 {
1217 return *this;
1218 }
References a, b, g, and r.
◆ demultiply() [1/2]
1263 {
1265 {
1267 {
1269 }
1270 else
1271 {
1275 }
1276 }
1277 return *this;
1278 }
References a, b, g, and r.
◆ demultiply() [2/2]
◆ downscale()
◆ downshift()
template<typename T >
| static AGG_INLINE T agg::rgba32::downshift |
( |
T |
a, |
|
|
unsigned |
n |
|
) |
| |
|
inlinestatic |
1179 {
1180 return n > 0 ?
a / (1 << n) :
a;
1181 }
References a.
◆ empty_value()
1129 {
1130 return 0;
1131 }
◆ from_double()
◆ from_wavelength()
| static self_type agg::rgba32::from_wavelength |
( |
double |
wl, |
|
|
double |
gamma = 1 |
|
) |
| |
|
inlinestatic |
1345 {
1347 }
rgba32 self_type
Definition agg_color_rgba.h:1036
static rgba from_wavelength(double wl, double gamma=1.0)
Definition agg_color_rgba.h:194
References agg::rgba::from_wavelength().
◆ full_value()
1135 {
1136 return 1;
1137 }
◆ gradient()
1282 {
1288 return ret;
1289 }
References a, b, g, and r.
◆ invert()
1153 {
1155 }
TCoord< P > x(const P &p)
Definition geometry_traits.hpp:297
◆ is_opaque()
◆ is_transparent()
| AGG_INLINE bool agg::rgba32::is_transparent |
( |
| ) |
const |
|
inline |
◆ lerp()
1205 {
1206
1207
1208
1209
1210 return (1 -
a) * p +
a * q;
1211 }
References a.
◆ mult_cover()
◆ multiply()
◆ no_color()
◆ opacity() [1/2]
| double agg::rgba32::opacity |
( |
| ) |
const |
|
inline |
◆ opacity() [2/2]
1229 {
1231 else if (a_ > 1)
a = 1;
1233 return *this;
1234 }
References a.
◆ operator rgba()
| agg::rgba32::operator rgba |
( |
| ) |
const |
|
inline |
1081 {
1082 return rgba(
r,
g,
b,
a);
1083 }
References a, b, g, and r.
◆ operator rgba16()
| agg::rgba32::operator rgba16 |
( |
| ) |
const |
|
inline |
1107 {
1113 }
AGG_INLINE int uround(double v)
Definition agg_basics.h:192
rgba8T< linear > rgba8
Definition agg_color_rgba.h:623
References a, b, g, r, and agg::uround().
◆ operator rgba8()
| agg::rgba32::operator rgba8 |
( |
| ) |
const |
|
inline |
◆ operator srgba8()
| agg::rgba32::operator srgba8 |
( |
| ) |
const |
|
inline |
1097 {
1099 sRGB_conv<value_type>::rgb_to_sRGB(
r),
1100 sRGB_conv<value_type>::rgb_to_sRGB(
g),
1101 sRGB_conv<value_type>::rgb_to_sRGB(
b),
1102 sRGB_conv<value_type>::alpha_to_sRGB(
a));
1103 }
rgba8T< sRGB > srgba8
Definition agg_color_rgba.h:624
References a, b, g, and r.
◆ prelerp()
1198 {
1199 return (1 -
a) * p + q;
1200 }
References a.
◆ premultiply()
1244 {
1246 {
1248 {
1250 }
1251 else
1252 {
1256 }
1257 }
1258 return *this;
1259 }
References a, b, g, and r.
◆ scale_cover()
1191 {
1193 }
unsigned char cover_type
Definition agg_basics.h:237
References a, b, and agg::uround().
◆ to_double()
◆ transparent()
1222 {
1224 return *this;
1225 }
References a.
Referenced by add(), clear(), demultiply(), demultiply(), downscale(), downshift(), from_double(), gradient(), is_opaque(), is_transparent(), lerp(), mult_cover(), multiply(), opacity(), opacity(), operator rgba(), operator rgba16(), operator rgba8(), operator srgba8(), prelerp(), premultiply(), scale_cover(), to_double(), and transparent().
Referenced by add(), apply_gamma_dir(), apply_gamma_inv(), clear(), demultiply(), demultiply(), gradient(), mult_cover(), multiply(), operator rgba(), operator rgba16(), operator rgba8(), operator srgba8(), premultiply(), and scale_cover().
Referenced by add(), apply_gamma_dir(), apply_gamma_inv(), clear(), demultiply(), gradient(), operator rgba(), operator rgba16(), operator rgba8(), operator srgba8(), and premultiply().
Referenced by add(), apply_gamma_dir(), apply_gamma_inv(), clear(), demultiply(), gradient(), operator rgba(), operator rgba16(), operator rgba8(), operator srgba8(), and premultiply().
The documentation for this struct was generated from the following file: