changeset 470:63b515853299

new method
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2013 16:58:46 +0200
parents a6fe16a31615
children 4c8111597fcf
files Core/FileFormats/PngReader.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/FileFormats/PngReader.h	Fri Jul 12 15:36:59 2013 +0200
+++ b/Core/FileFormats/PngReader.h	Fri Jul 12 16:58:46 2013 +0200
@@ -86,6 +86,14 @@
         return NULL;
     }
 
+    const void* GetBuffer(unsigned int y) const
+    {
+      if (buffer_.size() > 0)
+        return &buffer_[y * pitch_];
+      else
+        return NULL;
+    }
+
     void ReadFromFile(const char* filename);
 
     void ReadFromMemory(const void* buffer,