Skip to content

Commit

Permalink
Fix ENABLE_GRAY_ALPHA macro name to BOOST_GIL_IO_ENABLE_GRAY_ALPHA
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Jul 17, 2019
1 parent 8234329 commit 69adf0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions doc/io.rst
Expand Up @@ -434,9 +434,8 @@ Currently the code is able to read and write the following image types:
:Read: gray1, gray2, gray4, gray8, gray16, gray_alpha_8, gray_alpha_16, rgb8, rgb16, rgba8, rgba16
:Write: gray1, gray2, gray4, gray8, gray16, gray_alpha_8, gray_alpha_16, rgb8, rgb16, rgba8, rgba16

For reading gray_alpha images the user has to enable the ``ENABLE_GRAY_ALPHA``
compiler switch. This color space is defined in the toolbox by
using ``gray_alpha.hpp``.
For reading gray_alpha images the user has to compile application with ``BOOST_GIL_IO_ENABLE_GRAY_ALPHA``
macro defined. This color space is defined in the toolbox by using ``gray_alpha.hpp``.

PNM
+++
Expand Down
2 changes: 1 addition & 1 deletion include/boost/gil/extension/io/png/detail/read.hpp
Expand Up @@ -186,7 +186,7 @@ class reader< Device
default: io_error( "png_reader::read_data(): unknown combination of color type and bit depth" );
}
#else
io_error( "gray_alpha isn't enabled. Use ENABLE_GRAY_ALPHA when building application." );
io_error( "gray_alpha isn't enabled. Define BOOST_GIL_IO_ENABLE_GRAY_ALPHA when building application." );
#endif // BOOST_GIL_IO_ENABLE_GRAY_ALPHA


Expand Down

0 comments on commit 69adf0e

Please sign in to comment.