@@ -731,22 +731,22 @@ inline void RendererAgg::draw_text_image(GCAgg &gc, ImageArray &image, int x, in
731731 rendererBase.reset_clipping (true );
732732 if (angle != 0.0 ) {
733733 agg::rendering_buffer srcbuf (
734- image.data (), (unsigned )image.dim (1 ),
735- (unsigned )image.dim (0 ), (unsigned )image.dim (1 ));
734+ image.data (), (unsigned )image.shape (1 ),
735+ (unsigned )image.shape (0 ), (unsigned )image.shape (1 ));
736736 agg::pixfmt_gray8 pixf_img (srcbuf);
737737
738738 set_clipbox (gc.cliprect , theRasterizer);
739739
740740 agg::trans_affine mtx;
741- mtx *= agg::trans_affine_translation (0 , -image.dim (0 ));
741+ mtx *= agg::trans_affine_translation (0 , -image.shape (0 ));
742742 mtx *= agg::trans_affine_rotation (-angle * (agg::pi / 180.0 ));
743743 mtx *= agg::trans_affine_translation (x, y);
744744
745745 agg::path_storage rect;
746746 rect.move_to (0 , 0 );
747- rect.line_to (image.dim (1 ), 0 );
748- rect.line_to (image.dim (1 ), image.dim (0 ));
749- rect.line_to (0 , image.dim (0 ));
747+ rect.line_to (image.shape (1 ), 0 );
748+ rect.line_to (image.shape (1 ), image.shape (0 ));
749+ rect.line_to (0 , image.shape (0 ));
750750 rect.line_to (0 , 0 );
751751 agg::conv_transform<agg::path_storage> rect2 (rect, mtx);
752752
@@ -767,10 +767,10 @@ inline void RendererAgg::draw_text_image(GCAgg &gc, ImageArray &image, int x, in
767767 } else {
768768 agg::rect_i fig, text;
769769
770- int deltay = y - image.dim (0 );
770+ int deltay = y - image.shape (0 );
771771
772772 fig.init (0 , 0 , width, height);
773- text.init (x, deltay, x + image.dim (1 ), y);
773+ text.init (x, deltay, x + image.shape (1 ), y);
774774 text.clip (fig);
775775
776776 if (gc.cliprect .x1 != 0.0 || gc.cliprect .y1 != 0.0 || gc.cliprect .x2 != 0.0 || gc.cliprect .y2 != 0.0 ) {
@@ -832,19 +832,19 @@ inline void RendererAgg::draw_image(GCAgg &gc,
832832
833833 agg::rendering_buffer buffer;
834834 buffer.attach (
835- image.data (), (unsigned )image.dim (1 ), (unsigned )image.dim (0 ), -(int )image.dim (1 ) * 4 );
835+ image.data (), (unsigned )image.shape (1 ), (unsigned )image.shape (0 ), -(int )image.shape (1 ) * 4 );
836836 pixfmt pixf (buffer);
837837
838838 if (has_clippath) {
839839 agg::trans_affine mtx;
840840 agg::path_storage rect;
841841
842- mtx *= agg::trans_affine_translation ((int )x, (int )(height - (y + image.dim (0 ))));
842+ mtx *= agg::trans_affine_translation ((int )x, (int )(height - (y + image.shape (0 ))));
843843
844844 rect.move_to (0 , 0 );
845- rect.line_to (image.dim (1 ), 0 );
846- rect.line_to (image.dim (1 ), image.dim (0 ));
847- rect.line_to (0 , image.dim (0 ));
845+ rect.line_to (image.shape (1 ), 0 );
846+ rect.line_to (image.shape (1 ), image.shape (0 ));
847+ rect.line_to (0 , image.shape (0 ));
848848 rect.line_to (0 , 0 );
849849
850850 agg::conv_transform<agg::path_storage> rect2 (rect, mtx);
@@ -880,7 +880,7 @@ inline void RendererAgg::draw_image(GCAgg &gc,
880880 } else {
881881 set_clipbox (gc.cliprect , rendererBase);
882882 rendererBase.blend_from (
883- pixf, 0 , (int )x, (int )(height - (y + image.dim (0 ))), (agg::int8u)(alpha * 255 ));
883+ pixf, 0 , (int )x, (int )(height - (y + image.shape (0 ))), (agg::int8u)(alpha * 255 ));
884884 }
885885
886886 rendererBase.reset_clipping (true );
@@ -1234,7 +1234,7 @@ inline void RendererAgg::draw_gouraud_triangles(GCAgg &gc,
12341234 set_clipbox (gc.cliprect , theRasterizer);
12351235 bool has_clippath = render_clippath (gc.clippath .path , gc.clippath .trans , gc.snap_mode );
12361236
1237- for (int i = 0 ; i < points.dim (0 ); ++i) {
1237+ for (int i = 0 ; i < points.shape (0 ); ++i) {
12381238 typename PointArray::sub_t point = points.subarray (i);
12391239 typename ColorArray::sub_t color = colors.subarray (i);
12401240
0 commit comments