|
Geogram Version 1.9.7
A programming library of geometric algorithms
|
Loads and saves images. More...
#include <geogram/image/image_serializer_stb.h>
Public Member Functions | |
| ImageSerializerSTB (bool read, bool write) | |
| ImageSerializerSTB constructor. | |
| Image * | serialize_read (const std::string &file_name) override |
| bool | serialize_write (const std::string &file_name, const Image *image) override |
| bool | binary () const override |
| Tests whether the file format is binary or ASCII. | |
| bool | streams_supported () const override |
| Tests whether the functions that use streams are supported. | |
| bool | read_supported () const override |
| Tests whether reading is implemented. | |
| bool | write_supported () const override |
| Tests whether writing is implemented. | |
Public Member Functions inherited from GEO::ImageSerializer | |
| virtual Image * | serialize_read (std::istream &stream) |
| reads an image from a stream. | |
| virtual bool | serialize_write (std::ostream &stream, const Image *image) |
| writes an image into a stream. | |
Public Member Functions inherited from GEO::Counted | |
| void | ref () const |
| Increments the reference count. | |
| void | unref () const |
| Decrements the reference count. | |
| bool | is_shared () const |
| Check if the object is shared. | |
| int | nb_refs () const |
| Gets the number of references that point to this object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from GEO::Counted | |
| static void | ref (const Counted *counted) |
| Increments the reference count. | |
| static void | unref (const Counted *counted) |
| Decrements the reference count. | |
Protected Member Functions inherited from GEO::Counted | |
| Counted () | |
| Creates a reference counted object. | |
| virtual | ~Counted () |
| Destroys a reference counted object. | |
Loads and saves images.
Definition at line 62 of file image_serializer_stb.h.
| GEO::ImageSerializerSTB::ImageSerializerSTB | ( | bool | read, |
| bool | write | ||
| ) |
ImageSerializerSTB constructor.
| [in] | read | true if reading is supported |
| [in] | write | true if writing is supported |
|
overridevirtual |
Tests whether the file format is binary or ASCII.
It is used to determine whether a stream should be opened in ASCII or binary mode for loading image files. Default implementation in base class returns true.
| true | if the file format is binary |
| false | if the file format is ASCII |
Reimplemented from GEO::ImageSerializer.
|
overridevirtual |
Tests whether reading is implemented.
Some serializers implement only reading or only writing. Default implementation returns false
| true | if reading is supported |
| false | otherwise |
Reimplemented from GEO::ImageSerializer.
|
overridevirtual |
Reimplemented from GEO::ImageSerializer.
|
overridevirtual |
Reimplemented from GEO::ImageSerializer.
|
overridevirtual |
Tests whether the functions that use streams are supported.
Default implementation in base class returns true.
| true | if the functions that use streams are supported |
| false | otherwise |
This version returns false
Reimplemented from GEO::ImageSerializer.
|
overridevirtual |
Tests whether writing is implemented.
Some serializers implement only reading or only writing. Default implementation returns false
| true | if writing is supported |
| false | otherwise |
Reimplemented from GEO::ImageSerializer.