• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2013 Christian Henning
3 //
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
7 //
8 #include <boost/gil.hpp>
9 #include <boost/gil/extension/toolbox/color_converters/gray_to_rgba.hpp>
10 
11 #include <boost/core/lightweight_test.hpp>
12 
13 #include "test_utility_output_stream.hpp"
14 
15 namespace gil = boost::gil;
16 
test_gray_to_rgba()17 void test_gray_to_rgba()
18 {
19     gil::gray8_pixel_t a(45);
20     gil::rgba8_pixel_t b;
21     gil::color_convert(a, b);
22     BOOST_TEST_EQ(b, gil::rgba8_pixel_t(45, 45, 45, 255));
23 }
24 
main()25 int main()
26 {
27     test_gray_to_rgba();
28 
29     return boost::report_errors();
30 }
31