@@ -68,7 +68,7 @@ PyObject* tostring1( image_any const& im)
6868#else
6969 ::PyString_FromStringAndSize
7070#endif
71- ((const char *)im.getBytes (),im.getSize ());
71+ ((const char *)im.bytes (),im.size ());
7272}
7373
7474// encode (png,jpeg)
@@ -156,14 +156,14 @@ struct get_pixel_visitor
156156 {
157157 throw std::runtime_error (" Can not return a null image from a pixel (shouldn't have reached here)" );
158158 }
159-
159+
160160 template <typename T>
161161 object operator () (T const & im)
162162 {
163163 using pixel_type = typename T::pixel_type;
164164 return object (mapnik::get_pixel<pixel_type>(im, x_, y_));
165165 }
166-
166+
167167 private:
168168 unsigned x_;
169169 unsigned y_;
@@ -173,7 +173,7 @@ object get_pixel(mapnik::image_any const& im, unsigned x, unsigned y, bool get_c
173173{
174174 if (x < static_cast <unsigned >(im.width ()) && y < static_cast <unsigned >(im.height ()))
175175 {
176- if (get_color)
176+ if (get_color)
177177 {
178178 return object (
179179 mapnik::get_pixel<mapnik::color>(im, x, y)
@@ -312,7 +312,7 @@ void composite(image_any & dst, image_any & src, mapnik::composite_mode_e mode,
312312 bool demultiply_dst = mapnik::premultiply_alpha (dst);
313313 bool demultiply_src = mapnik::premultiply_alpha (src);
314314 mapnik::composite (dst,src,mode,opacity,dx,dy);
315- if (demultiply_dst)
315+ if (demultiply_dst)
316316 {
317317 mapnik::demultiply_alpha (dst);
318318 }
0 commit comments