+ add getBytes() method ( needed by webp i/o)

This commit is contained in:
artemp 2013-04-17 14:46:11 +01:00
parent cc5788e9c4
commit 868d60d765

View File

@ -88,6 +88,12 @@ public:
{
return data_.getRow(row + y_) + x_;
}
inline char const* getBytes() const
{
return reinterpret_cast<char const*>(&data_);
}
inline T& data()
{
return data_;
@ -107,4 +113,3 @@ private:
}
#endif // MAPNIK_IMAGE_VIEW_HPP