Ejemplo n.º 1
0
 public CompositionColorBrush CreateColorBrush(Wui.Color color) => new CompositionColorBrush(color);
Ejemplo n.º 2
0
 public CompositionColorGradientStop CreateColorGradientStop(float offset, Wui.Color color) => new CompositionColorGradientStop(offset, color);
Ejemplo n.º 3
0
 // The given color multiplied by the given opacity, where the opacity is pre-multiplied by 255.
 // The premultiplication can result in a simpler expression when color.A is 255 because
 // 255 / 255 * premultipliedOpacity * 255 will simplify to just premultipliedOpacity.
 internal static Color ColorMultipliedByPreMultipliedOpacities(Wui.Color color, Scalar[] premultipliedOpacities)
 => ColorAsVector4MultipliedByOpacities(Vector4(color.R, color.G, color.B, color.A / 255.0), premultipliedOpacities);