cpp/poppler-image.cpp | 10 ++++++++++ cpp/poppler-image.h | 1 + 2 files changed, 11 insertions(+)
New commits: commit abb1313ae40ab7efb073406f47fa53bf7afe0b88 Author: Pino Toscano <[email protected]> Date: Mon Nov 8 01:54:03 2010 +0100 [cpp/apidox] add the minimum version of 'image' diff --git a/cpp/poppler-image.cpp b/cpp/poppler-image.cpp index 043f97e..ef50611 100644 --- a/cpp/poppler-image.cpp +++ b/cpp/poppler-image.cpp @@ -138,6 +138,8 @@ image_private *image_private::create_data(char *data, int width, int height, ima value class. This also means any non-const operation will make sure that the data used by current instance is not shared with other instances (ie \em detaching), copying the shared data. + + \since 0.16 */ /** commit f559e77cb7d76c5fe6a79be9086667a29613c912 Author: Pino Toscano <[email protected]> Date: Mon Nov 8 01:52:48 2010 +0100 [cpp] add image::bytes_per_row() diff --git a/cpp/poppler-image.cpp b/cpp/poppler-image.cpp index 36f0aa8..043f97e 100644 --- a/cpp/poppler-image.cpp +++ b/cpp/poppler-image.cpp @@ -242,6 +242,14 @@ int image::height() const } /** + \returns the number of bytes in each row of the image + */ +int image::bytes_per_row() const +{ + return d ? d->bytes_per_row : 0; +} + +/** Access to the image bits. This function will detach and copy the shared data. diff --git a/cpp/poppler-image.h b/cpp/poppler-image.h index 503f371..4f2e301 100644 --- a/cpp/poppler-image.h +++ b/cpp/poppler-image.h @@ -49,6 +49,7 @@ public: int height() const; char *data(); const char *const_data() const; + int bytes_per_row() const; image copy(const rect &r = rect()) const; _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
