File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -159,14 +159,14 @@ upside down:
159
159
160
160
.. code-block :: cpp
161
161
162
- #include <boost\gil\extension\io\jpeg_dynamic_io .hpp>
162
+ #include <boost\gil\extension\io\jpeg .hpp>
163
163
164
164
template <typename Image> // Could be rgb8_image_t or any_image<...>
165
165
void save_180rot(const std::string& file_name)
166
166
{
167
167
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( ));
170
170
}
171
171
172
172
It can be instantiated with either a compile-time or a runtime image
Original file line number Diff line number Diff line change @@ -172,6 +172,8 @@ provides access to the so-called backend.
172
172
173
173
For instance::
174
174
175
+ typedef bmp_tag tag_t;
176
+
175
177
typedef get_reader_backend< const std::string
176
178
, tag_t
177
179
>::type backend_t;
@@ -245,7 +247,7 @@ The following example shows this feature::
245
247
, gray16_image_t
246
248
, rgb8_image_t
247
249
, rgba8_image_t
248
- > my_img_types > runtime_image;
250
+ > runtime_image;
249
251
250
252
read_image( filename
251
253
, runtime_image
@@ -323,7 +325,7 @@ Writing an any_image<...> is supported. See the following example::
323
325
, gray16_image_t
324
326
, rgb8_image_t
325
327
, rgba8_image_t
326
- > my_img_types > runtime_image;
328
+ > runtime_image;
327
329
328
330
// fill any_image
329
331
You can’t perform that action at this time.
0 commit comments