- /*
- offset_x = 0;
- if (path != null) {
- if (rpath == null) rpath = path.realize(transform == null ? VectorGraphics.Affine.identity() : transform);
- if ((flags & HSHRINK) != 0) contentwidth = max(contentwidth, rpath.boundingBoxWidth());
- if ((flags & VSHRINK) != 0) contentheight = max(contentheight, rpath.boundingBoxHeight());
- // FIXME: separate offset_x needed for the path
- }
- // #repeat x1/y1 x2/y2 x3/y3 x4/y4 contentwidth/contentheight left/top right/bottom
- int x1 = transform == null ? 0 : (int)transform.multiply_px(0, 0);
- int x2 = transform == null ? 0 : (int)transform.multiply_px(contentwidth, 0);
- int x3 = transform == null ? contentwidth : (int)transform.multiply_px(contentwidth, contentheight);
- int x4 = transform == null ? contentwidth : (int)transform.multiply_px(0, contentheight);
- int left = min(min(x1, x2), min(x3, x4));
- int right = max(max(x1, x2), max(x3, x4));
- contentwidth = max(contentwidth, right - left);
- offset_x = -1 * left;
- // #end
- */
-
-
- /*
- if (path != null) {
- if (rtransform == null) rpath = null;
- else if (!rtransform.equalsIgnoringTranslation(a)) rpath = null;
- else {
- rpath.translate((int)(a.e - rtransform.e), (int)(a.f - rtransform.f));
- rtransform = a.copy();
- }
- if (rpath == null) rpath = path.realize((rtransform = a) == null ? VectorGraphics.Affine.identity() : a);
- if ((strokecolor & 0xff000000) != 0) rpath.stroke(buf, 1, strokecolor);
- if ((fillcolor & 0xff000000) != 0) rpath.fill(buf, new VectorGraphics.SingleColorPaint(fillcolor));
- }
-*/
-
-
-/*
- VectorGraphics.Affine a2 = VectorGraphics.Affine.translate(b.x, b.y);
- if (transform != null) a2.multiply(transform);
- a2.multiply(VectorGraphics.Affine.translate(offset_x, offset_y));
- a2.multiply(a);
-*/