internal static spr➓ smethod_0(Class672 A_0) { SizeF ef2; WordArt wordArt = A_0.method_28().WordArt; spr➓ r➓ = A_0.method_10(); spr⚪ r⚪ = A_0.method_18(); spr᧢ r᧢ = A_0.method_19(); SizeF sizeInPoints = A_0.method_28().SizeInPoints; float height = sizeInPoints.Height; GraphicsPath path = smethod_3(wordArt, height, out ef2); if (path.PointCount == 0) { return(null); } if ((r➓.() == 1) && wordArt.FitShape) { sprᲆ rᲆ = r➓.ᜀ(0); if (rᲆ.() == 2) { spr➓ r➓2; try { r➓2 = smethod_2(smethod_7(path, (sprᧂ)rᲆ.ᜀ(0), (sprᧂ)rᲆ.ᜀ(1), wordArt.Trim, height, ef2), r⚪, r᧢); } catch (Exception8) { goto Label_00B8; } return(r➓2); } } Label_00B8: return(smethod_2(smethod_1(A_0, path, sizeInPoints), r⚪, r᧢)); }
private static void smethod_10(Class672 A_0, PointF[] A_1) { switch (A_0.method_28().ShapeType) { case ShapeType.Rectangle: smethod_11(A_0); return; case ShapeType.RoundRectangle: { Size coordSize = A_0.method_28().CoordSize; int num = A_0.method_28().method_60(1); if (num != 0) { smethod_15(A_0, num, coordSize); return; } smethod_11(A_0); return; } case ShapeType.Ellipse: A_0.method_31(smethod_13(A_0)); return; case ShapeType.Line: smethod_12(A_0); return; } A_0.method_13(A_0.method_28().SegmentInfo); A_0.method_15(A_1); }
internal static spr➓ smethod_0(Class672 A_0) { WordArt wordArt = A_0.method_28().WordArt; spr➓ r➓ = new spr➓(); if (sprḆ.(wordArt.Text)) { string str = Class955.smethod_7(wordArt.Text); spr⚪ r⚪ = A_0.method_18(); spr⡅ r⡅2 = A_0.method_19() as spr⡅; spr⡅ r⡅ = (r⚪ == null) ? null : (r⚪.() as spr⡅); SizeF sizeInPoints = A_0.method_28().SizeInPoints; float width = sizeInPoints.Width; float height = sizeInPoints.Height; float rotation = (float)A_0.method_28().Rotation; int num7 = smethod_1(wordArt.Bold, wordArt.Italic, wordArt.Underline); sprᝪ rᝪ = spr᮵.ᜂ().ᜀ(wordArt.FontFamily, height, (FontStyle)num7, wordArt.FontFamily); PointF tf = new PointF(0f, rᝪ.ᜑ() - (rᝪ.ᜏ() - rᝪ.ᜃ())); sprⓚ rⓚ2 = ((r⡅2 == null) || sprⓚ.ᜁ(r⡅2.ᜀ(), null)) ? sprⓚ.ទ : r⡅2.ᜀ(); sprⓚ rⓚ = ((r⡅ == null) || sprⓚ.ᜁ(r⡅.ᜀ(), null)) ? sprⓚ.ទ : r⡅.ᜀ(); spr⚢ r⚢ = new spr⚢(rᝪ, rⓚ2, rⓚ, tf, str, SizeF.Empty, (float)wordArt.Spacing); SizeF ef = rᝪ.ᜃ(str); float num2 = width / ef.Width; r⚢.ᜀ(new spr➂(num2, 0f, 0f, 1f, 0f, 0f)); if (rotation != 0f) { float x = width * 0.5f; float y = height * 0.5f; r⚢.ᜃ().ᜀ(rotation, new PointF(x, y), MatrixOrder.Append); } r➓.ᜁ(r⚢); } return(r➓); }
private SizeF method_0(ShapeObject A_0) { Class673 class2 = this.method_1(A_0); Class672 class3 = new Class672(new Class724(A_0), class2, null); float num = Class315.smethod_2(A_0); return(Class315.smethod_0(class3, num).Size); }
internal static RectangleF smethod_0(Class672 A_0, float A_1) { RectangleF ef = A_0.method_30(); Class316 class2 = A_0.method_8(); ShapeObject obj2 = A_0.method_28(); float strokeWeight = (float)obj2.StrokeWeight; if ((strokeWeight <= 1f) || !obj2.Stroked) { strokeWeight = 0f; } float num2 = strokeWeight * 0.5f; float x = ef.X; float y = ef.Y; float width = ef.Width; float height = ef.Height; float num7 = x + width; float num8 = y + height; float num9 = A_0.method_33().Width; float num10 = A_0.method_33().Height; float num11 = ((float)obj2.TextBox.method_0()) + num2; float num12 = ((float)obj2.TextBox.method_4()) + num2; float num13 = ((float)obj2.TextBox.method_2()) + num2; float num14 = ((float)obj2.TextBox.method_6()) + num2; float coordSizeWidth = obj2.CoordSizeWidth; float coordSizeHeight = obj2.CoordSizeHeight; float num17 = (num9 - num11) - num13; float num18 = (num10 - num12) - num14; float num19 = x / coordSizeWidth; float num20 = num7 / coordSizeWidth; float num21 = y / coordSizeHeight; float num22 = num8 / coordSizeHeight; float num23 = (num17 * num19) + num11; float num24 = (num17 * num20) + num11; float num25 = (num18 * num21) + num12; float num26 = (num18 * num22) + num12; float num28 = (num9 == 0f) ? 1f : (coordSizeWidth / num9); float num27 = (num10 == 0f) ? 1f : (coordSizeHeight / num10); x = (num23 * num28) + num2; num7 = (num24 * num28) + num2; y = (num25 * num27) - num2; num8 = (num26 * num27) - num2; PointF[] tfArray2 = new PointF[] { new PointF(x, y), new PointF(num7, num8) }; class2.method_1(tfArray2, true); width = tfArray2[1].X - tfArray2[0].X; height = tfArray2[1].Y - tfArray2[0].Y; SizeF size = smethod_3(obj2, width, height, A_1); PointF location = tfArray2[0]; if (Class316.smethod_1(obj2)) { float num29 = (height - width) * 0.5f; location = new PointF(location.X - num29, location.Y + num29); } return(new RectangleF(location, size)); }
private static void smethod_12(Class672 A_0) { Size coordSize = A_0.method_28().CoordSize; A_0.method_13(new Class679[2]); A_0.method_12()[0] = new Class679(PathType.MoveTo, 0); A_0.method_12()[1] = new Class679(PathType.LineTo, 1); PointF[] tfArray = new PointF[] { PointF.Empty, PointF.Empty }; A_0.method_15(tfArray); A_0.method_14()[1] = new PointF((float)coordSize.Width, (float)coordSize.Height); }
internal static void smethod_0(Class672 A_0, PointF A_1, PointF A_2) { sprᲆ rᲆ = new sprᲆ(A_0.method_18()); rᲆ.ᜀ(A_0.method_19()); sprᧂ rᧂ = new sprᧂ(); rᲆ.ᜁ(rᧂ); rᧂ.ᜁ(A_1, A_2); A_0.method_10().ᜁ(rᲆ); }
private static sprᲆ smethod_1(Class672 A_0, GraphicsPath A_1, SizeF A_2) { sprᧂ rᧂ = new sprᧂ(); PointF[] tfArray = new PointF[] { PointF.Empty, new PointF(A_2.Width, 0f) }; rᧂ.ᜁ(new spr៧(tfArray)); sprᧂ rᧂ2 = new sprᧂ(); PointF[] tfArray2 = new PointF[] { new PointF(0f, A_2.Height), new PointF(A_2.Width, A_2.Height) }; rᧂ2.ᜁ(new spr៧(tfArray2)); return(smethod_7(A_1, rᧂ, rᧂ2, true, A_2.Height, SizeF.Empty)); }
internal static void smethod_0(Class672 A_0) { if (A_0.method_28() == null) { throw new ArgumentNullException(); } ShapeObject obj2 = A_0.method_28(); int[] numArray = smethod_18(obj2); PointF[] tfArray = smethod_2(obj2.Vertices, numArray); A_0.method_31(smethod_3(obj2, numArray)); smethod_10(A_0, tfArray); }
internal Class672(Class672 A_0, Class679[] A_1) { this.rectangleF_0 = RectangleF.Empty; this.pointF_1 = PointF.Empty; this.sizeF_0 = SizeF.Empty; this.sizeF_1 = SizeF.Empty; this.class724_0 = A_0.class724_0; this.sprℭ_0 = A_0.sprℭ_0; this.shapeObject_0 = A_0.method_28(); this.class316_0 = A_0.class316_0; this.sizeF_0 = A_0.sizeF_0; this.sizeF_1 = A_0.sizeF_1; this.spr➓_0 = new spr➓(); Class889.smethod_0(this); this.class679_0 = A_1; }
private static RectangleF smethod_13(Class672 A_0) { Size coordSize = A_0.method_28().CoordSize; A_0.method_13(new Class679[2]); A_0.method_12()[0] = new Class679(PathType.AngleEllipse, 3); PointF[] tfArray = new PointF[] { PointF.Empty, PointF.Empty, PointF.Empty }; A_0.method_15(tfArray); float x = coordSize.Width * 0.5f; float y = coordSize.Height * 0.5f; A_0.method_14()[0] = new PointF(x, y); A_0.method_14()[1] = new PointF(x, y); A_0.method_14()[2] = new PointF(0f, -2.359296E+07f); A_0.method_12()[1] = new Class679(PathType.Close, 0); return(smethod_14(coordSize)); }
internal Class890(Class672 A_0) { ShapeObject obj2 = A_0.method_28(); this.float_0 = (float)Class969.smethod_42(obj2.ExtrusionForeDepth); this.float_1 = (float)Class969.smethod_42(obj2.ExtrusionBackDepth); this.float_2 = (float)Class969.smethod_68(obj2.ExtrusionSkewAngle); SizeF ef = A_0.method_32(); this.pointF_0 = new PointF((ef.Width / 2f) + (ef.Width * ((float)Class969.smethod_68(obj2.ViewpointOriginX))), (ef.Height / 2f) + (ef.Height * ((float)Class969.smethod_68(obj2.ViewpointOriginY)))); this.float_3 = (float)Class969.smethod_42(obj2.ViewpointX); this.float_4 = (float)Class969.smethod_42(obj2.ViewpointY); this.float_5 = (float)Class969.smethod_42(obj2.ViewpointZ); this.float_6 = (float)Class969.smethod_68(-obj2.TDRotationAngleX); this.float_7 = (float)Class969.smethod_68(obj2.TDRotationAngleY); this.pointF_1 = new PointF(ef.Width / 2f, ef.Height / 2f); }
internal void method_1(Class672 A_0, spr➓ A_1) { if ((this.interface55_0 != null) && this.interface55_0.imethod_13(A_0.method_28())) { ShapeObject obj2 = A_0.method_28(); float num = smethod_2(obj2); this.rectangleF_0 = smethod_0(A_0, num); float width = this.rectangleF_0.Width; spr➓ r➓ = this.method_4(A_0); if (r➓ != null) { r➓.ᜀ(this.method_6(num)); Class551 class2 = this.method_2(obj2); r➓.ᜀ(sprᲆ.ᜂ(new RectangleF(-class2.method_0(), 0f, (class2.method_0() + class2.method_1()) + width, this.rectangleF_0.Height))); A_1.ᜁ(r➓); } } }
internal SizeF method_0(Class672 A_0) { spr➓ r➓ = new spr➓(); this.method_1(A_0, r➓); Class1076 textBox = A_0.method_28().TextBox; SizeF size = this.rectangleF_0.Size; switch (smethod_2(A_0.method_28())) { case 90f: case -90f: size = new SizeF(size.Height, size.Width); break; } float num2 = (float)((size.Width + textBox.method_0()) + textBox.method_2()); return(new SizeF((num2 > A_0.method_28().Width) ? num2 : ((float)A_0.method_28().Width), (float)((size.Height + textBox.method_4()) + textBox.method_6()))); }
private static void smethod_15(Class672 A_0, int A_1, Size A_2) { int num; int num2; if (A_0.method_32().Width > A_0.method_32().Height) { num = A_1; num2 = (int)((A_0.method_32().Height / A_0.method_32().Width) * A_1); } else { num2 = A_1; num = (int)((A_0.method_32().Width / A_0.method_32().Height) * A_1); } A_0.method_13(new Class679[10]); PointF[] tfArray = new PointF[] { PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty }; A_0.method_15(tfArray); A_0.method_12()[0] = new Class679(PathType.MoveTo, 0); A_0.method_14()[0] = new PointF(0f, (float)num); A_0.method_12()[1] = new Class679(PathType.EllipticalQuadrantY, 1); A_0.method_14()[1] = new PointF((float)num2, 0f); A_0.method_12()[2] = new Class679(PathType.LineTo, 1); A_0.method_14()[2] = new PointF((float)(A_2.Width - num2), 0f); A_0.method_12()[3] = new Class679(PathType.EllipticalQuadrantX, 1); A_0.method_14()[3] = new PointF((float)A_2.Width, (float)num); A_0.method_12()[4] = new Class679(PathType.LineTo, 1); A_0.method_14()[4] = new PointF((float)A_2.Width, (float)(A_2.Height - num)); A_0.method_12()[5] = new Class679(PathType.EllipticalQuadrantY, 1); A_0.method_14()[5] = new PointF((float)(A_2.Width - num2), (float)A_2.Height); A_0.method_12()[6] = new Class679(PathType.LineTo, 1); A_0.method_14()[6] = new PointF((float)num2, (float)A_2.Height); A_0.method_12()[7] = new Class679(PathType.EllipticalQuadrantX, 1); A_0.method_14()[7] = new PointF(0f, (float)(A_2.Height - num)); A_0.method_12()[8] = new Class679(PathType.Close, 1); A_0.method_12()[9] = new Class679(PathType.End, 0); }
private spr➓ method_4(Class672 A_0) { ShapeObject obj2 = A_0.method_28(); float num = Math.Max(0f, this.rectangleF_0.Width); float num2 = Math.Max(0f, this.rectangleF_0.Height); this.interface55_0.imethod_5(((obj2.TextBox.method_12() != TextBoxWrapMode.None) || !obj2.TextBox.method_8()) ? num : 0f); this.interface55_0.imethod_1(num2); object obj3 = this.interface55_0.imethod_11(obj2, new Class68()); float y = this.rectangleF_0.Y; this.method_5(A_0.method_28().TextBox.method_14()); Color color = (!obj2.Filled || (obj2.Fill.FillType != FillType.Solid)) ? Color.Empty : obj2.FillColor; if (obj2.IsFitTextboxToText && !this.method_3()) { this.rectangleF_0 = new RectangleF(this.rectangleF_0.Location, new SizeF(this.interface55_0.imethod_4(), this.interface55_0.imethod_0())); } else if (this.interface55_0.imethod_4() > this.rectangleF_0.Width) { this.rectangleF_0 = new RectangleF(this.rectangleF_0.Location, new SizeF(this.interface55_0.imethod_4(), this.rectangleF_0.Height)); } return(this.interface55_0.imethod_12(obj3, new SizeF(this.interface55_0.imethod_4(), this.interface55_0.imethod_0()), (this.rectangleF_0.Height - this.rectangleF_0.Y) + y, color)); }