#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.0) |
| |
◆ calc_type
◆ long_type
◆ self_type
◆ value_type
◆ base_scale_e
| Enumerator |
|---|
| base_shift | |
| base_scale | |
| base_mask | |
| base_MSB | |
668 {
673 };
@ base_scale
Definition agg_color_rgba.h:670
@ base_MSB
Definition agg_color_rgba.h:672
@ base_shift
Definition agg_color_rgba.h:669
@ base_mask
Definition agg_color_rgba.h:671
◆ rgba16() [1/6]
◆ rgba16() [2/6]
| agg::rgba16::rgba16 |
( |
unsigned |
r_, |
|
|
unsigned |
g_, |
|
|
unsigned |
b_, |
|
|
unsigned |
a_ = base_mask |
|
) |
| |
|
inline |
685 :
value_type r
Definition agg_color_rgba.h:676
value_type g
Definition agg_color_rgba.h:677
value_type a
Definition agg_color_rgba.h:679
int16u value_type
Definition agg_color_rgba.h:664
value_type b
Definition agg_color_rgba.h:678
◆ rgba16() [3/6]
◆ rgba16() [4/6]
696 :
AGG_INLINE int uround(double v)
Definition agg_basics.h:192
◆ rgba16() [5/6]
◆ rgba16() [6/6]
710 :
711 r(sRGB_conv<value_type>::rgb_from_sRGB(
c.r)),
712 g(sRGB_conv<value_type>::rgb_from_sRGB(
c.g)),
713 b(sRGB_conv<value_type>::rgb_from_sRGB(
c.b)),
714 a(sRGB_conv<value_type>::alpha_from_sRGB(
c.a)) {}
◆ add()
957 {
960 {
962 {
964 return;
965 }
966 else
967 {
972 }
973 }
974 else
975 {
980 }
985 }
@ cover_mask
Definition agg_basics.h:242
int32u calc_type
Definition agg_color_rgba.h:665
static AGG_INLINE value_type mult_cover(value_type a, cover_type b)
Definition agg_color_rgba.h:824
References a, b, base_mask, agg::cover_mask, g, mult_cover(), and r.
◆ apply_gamma_dir()
template<class GammaLUT >
◆ apply_gamma_inv()
template<class GammaLUT >
◆ clear()
852 {
854 return *this;
855 }
References a, b, g, and r.
◆ demultiply() [1/2]
923 {
925 {
927 {
929 }
930 else
931 {
938 }
939 }
940 return *this;
941 }
References a, b, base_mask, g, and r.
◆ demultiply() [2/2]
795 {
797 {
798 return 0;
799 }
801 {
803 }
805 }
References a, b, and base_mask.
◆ downscale()
◆ downshift()
template<typename T >
| static AGG_INLINE T agg::rgba16::downshift |
( |
T |
a, |
|
|
unsigned |
n |
|
) |
| |
|
inlinestatic |
◆ empty_value()
757 {
758 return 0;
759 }
◆ from_double()
◆ from_wavelength()
| static self_type agg::rgba16::from_wavelength |
( |
double |
wl, |
|
|
double |
gamma = 1.0 |
|
) |
| |
|
inlinestatic |
1010 {
1012 }
rgba16 self_type
Definition agg_color_rgba.h:674
static rgba from_wavelength(double wl, double gamma=1.0)
Definition agg_color_rgba.h:194
References agg::rgba::from_wavelength().
◆ full_value()
◆ gradient()
945 {
952 return ret;
953 }
static AGG_INLINE value_type lerp(value_type p, value_type q, value_type a)
Definition agg_color_rgba.h:844
References a, b, base_mask, g, lerp(), r, and agg::uround().
◆ invert()
781 {
783 }
TCoord< P > x(const P &p)
Definition geometry_traits.hpp:297
References base_mask.
◆ is_opaque()
◆ is_transparent()
| AGG_INLINE bool agg::rgba16::is_transparent |
( |
| ) |
const |
|
inline |
◆ lerp()
◆ mult_cover()
825 {
827 }
static AGG_INLINE value_type multiply(value_type a, value_type b)
Definition agg_color_rgba.h:787
References a, b, and multiply().
Referenced by add().
◆ multiply()
◆ no_color()
◆ opacity() [1/2]
| double agg::rgba16::opacity |
( |
| ) |
const |
|
inline |
◆ opacity() [2/2]
◆ operator rgba()
| agg::rgba16::operator rgba |
( |
| ) |
const |
|
inline |
718 {
719 return rgba(
724 }
References a, b, g, and r.
◆ operator rgba8()
| agg::rgba16::operator rgba8 |
( |
| ) |
const |
|
inline |
728 {
729 return rgba8(
r >> 8,
g >> 8,
b >> 8,
a >> 8);
730 }
rgba8T< linear > rgba8
Definition agg_color_rgba.h:623
References a, b, g, and r.
◆ operator srgba8()
| agg::rgba16::operator srgba8 |
( |
| ) |
const |
|
inline |
734 {
735
737 sRGB_conv<value_type>::rgb_to_sRGB(
r),
738 sRGB_conv<value_type>::rgb_to_sRGB(
g),
739 sRGB_conv<value_type>::rgb_to_sRGB(
b),
740 sRGB_conv<value_type>::alpha_to_sRGB(
a));
741 }
rgba8T< sRGB > srgba8
Definition agg_color_rgba.h:624
References a, b, g, and r.
◆ prelerp()
◆ premultiply() [1/2]
881 {
883 {
885 {
887 }
888 else
889 {
893 }
894 }
895 return *this;
896 }
References a, b, base_mask, g, multiply(), and r.
◆ premultiply() [2/2]
900 {
902 {
903 if (
a == 0 || a_ == 0)
904 {
906 }
907 else
908 {
916 }
917 }
918 return *this;
919 }
References a, b, base_mask, g, and r.
◆ scale_cover()
◆ to_double()
◆ transparent()
859 {
861 return *this;
862 }
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 rgba8(), operator srgba8(), prelerp(), premultiply(), 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 rgba8(), operator srgba8(), premultiply(), premultiply(), and scale_cover().
Referenced by add(), apply_gamma_dir(), apply_gamma_inv(), clear(), demultiply(), gradient(), operator rgba(), operator rgba8(), operator srgba8(), premultiply(), and premultiply().
Referenced by add(), apply_gamma_dir(), apply_gamma_inv(), clear(), demultiply(), gradient(), operator rgba(), operator rgba8(), operator srgba8(), premultiply(), and premultiply().
The documentation for this struct was generated from the following file: