Skip to content

Commit

Permalink
fix: Documentation (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-langer authored Mar 16, 2023
1 parent ecea33a commit eabd679
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/design/dynamic_image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ upside down:

.. code-block:: cpp
#include <boost\gil\extension\io\jpeg_dynamic_io.hpp>
#include <boost\gil\extension\io\jpeg.hpp>
template <typename Image> // Could be rgb8_image_t or any_image<...>
void save_180rot(const std::string& file_name)
{
Image img;
jpeg_read_image(file_name, img);
jpeg_write_view(file_name, rotated180_view(view(img)));
read_image(file_name, img, jpeg_tag());
write_view(file_name, rotated180_view(view(img)), jpeg_tag());
}
It can be instantiated with either a compile-time or a runtime image
Expand Down
6 changes: 4 additions & 2 deletions doc/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ provides access to the so-called backend.

For instance::

typedef bmp_tag tag_t;

typedef get_reader_backend< const std::string
, tag_t
>::type backend_t;
Expand Down Expand Up @@ -245,7 +247,7 @@ The following example shows this feature::
, gray16_image_t
, rgb8_image_t
, rgba8_image_t
> my_img_types > runtime_image;
> runtime_image;

read_image( filename
, runtime_image
Expand Down Expand Up @@ -323,7 +325,7 @@ Writing an any_image<...> is supported. See the following example::
, gray16_image_t
, rgb8_image_t
, rgba8_image_t
> my_img_types > runtime_image;
> runtime_image;

// fill any_image

Expand Down

0 comments on commit eabd679

Please sign in to comment.