mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ add getBytes() method ( needed by webp i/o)
This commit is contained in:
parent
cc5788e9c4
commit
868d60d765
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user