Skip to content

Commit eabd679

Browse files
authored
fix: Documentation (#731)
1 parent ecea33a commit eabd679

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

doc/design/dynamic_image.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@ upside down:
159159

160160
.. code-block:: cpp
161161
162-
#include <boost\gil\extension\io\jpeg_dynamic_io.hpp>
162+
#include <boost\gil\extension\io\jpeg.hpp>
163163
164164
template <typename Image> // Could be rgb8_image_t or any_image<...>
165165
void save_180rot(const std::string& file_name)
166166
{
167167
Image img;
168-
jpeg_read_image(file_name, img);
169-
jpeg_write_view(file_name, rotated180_view(view(img)));
168+
read_image(file_name, img, jpeg_tag());
169+
write_view(file_name, rotated180_view(view(img)), jpeg_tag());
170170
}
171171
172172
It can be instantiated with either a compile-time or a runtime image

doc/io.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ provides access to the so-called backend.
172172

173173
For instance::
174174

175+
typedef bmp_tag tag_t;
176+
175177
typedef get_reader_backend< const std::string
176178
, tag_t
177179
>::type backend_t;
@@ -245,7 +247,7 @@ The following example shows this feature::
245247
, gray16_image_t
246248
, rgb8_image_t
247249
, rgba8_image_t
248-
> my_img_types > runtime_image;
250+
> runtime_image;
249251

250252
read_image( filename
251253
, runtime_image
@@ -323,7 +325,7 @@ Writing an any_image<...> is supported. See the following example::
323325
, gray16_image_t
324326
, rgb8_image_t
325327
, rgba8_image_t
326-
> my_img_types > runtime_image;
328+
> runtime_image;
327329

328330
// fill any_image
329331

0 commit comments

Comments
 (0)