summaryrefslogtreecommitdiff
path: root/cpp/poppler-image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/poppler-image.cpp')
-rw-r--r--cpp/poppler-image.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/poppler-image.cpp b/cpp/poppler-image.cpp
index 36f0aa89..043f97e7 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.