Skip to content
gchudnov edited this page Nov 21, 2014 · 5 revisions

ColorF

Colors channels can be represented as floating point numbers between 0.0 (min) and 1.0 (max) via colorF data type.

  • Each channel value has a range from 0.0 to 1.0.
  • An alpha channel value ranges from 0.0 to 1.0. The default value is 1.0.
    • 0.0 represents a fully transparent color
    • 1.0 represents a fully opaque color.
  colorF c1(0.2, 0.6, 0.8); // r,g,b; a=1.0

ColorF can be converted to a Color value:

  colorF c2 = wpf_color_constant::brown;
  color c4 = c2;
Clone this wiki locally