dlib.image.color

RGBA color space

Members

Aliases

Color4
alias Color4 = Vector!(ushort, 4)
ColorRGBA
alias ColorRGBA = Color4

RGBA 16-bit integer color representation (a vector of ushorts)

ColorRGBAf
alias ColorRGBAf = Color4f

RGBA floating-point color representation, encapsulates Vector4f

Enums

Channel
enum Channel

RGBA color channel

Functions

alphaOver
Color4f alphaOver(Color4f c1, Color4f c2)

Blend two colors taking transparency into account

color3
Color4f color3(int hex)

24-bit integer color unpacking

color4
Color4f color4(int hex)

32-bit integer color unpacking

invert
Color4 invert(Color4 c)
Undocumented in source. Be warned that the author may not have intended to support it.
packNormal
Color4f packNormal(Vector3f n)

Encode a normal vector to color

Structs

Color4f
struct Color4f

RGBA floating-point color representation, encapsulates Vector4f

Meta

Authors

Timur Gafarov