internal static spr᧢ smethod_14(ShapeObject A_0, SizeF A_1) { VMLFill fill = A_0.Fill; if (Class1022.smethod_0(A_1)) { return(null); } if (smethod_4(fill)) { return(smethod_1(sprⓚ.ᜀ(fill.ColorInternal), fill.Opacity)); } RectangleF ef = new RectangleF(0f, 0f, A_1.Width, A_1.Height); float num = -((float)fill.Angle) - 90f; float totalRotation = (float)A_0.TotalRotation; RectangleF empty = RectangleF.Empty; spr➂ r➂ = new spr➂(); if (A_0.IsTextureRotated) { r➂.ᜀ(totalRotation + num, spr.ᜁ(ef)); empty = spr.ᜁ(ef, -num); } else { r➂.ᜀ(num, spr.ᜁ(ef)); empty = spr.ᜁ(spr.ᜁ(ef, totalRotation), -num); } spr⡀ r⡀ = new spr⡀(empty); r⡀.ᜀ(r➂); smethod_7(fill, r⡀); return(r⡀); }
private void method_15(spr➓ A_0, ShapeObject A_1, Class673 A_2, Class1021 A_3) { if (A_1.HasImage) { spr➓ r➓ = new spr➓(); r➓.ᜀ(Class316.smethod_8(A_1, A_2)); DocPicture imageData = A_1.ImageData; byte[] buffer = smethod_3(A_1) ? smethod_4(A_1) : Class1022.smethod_5(imageData); sprἣ sprἣ = new sprἣ(PointF.Empty, this.class672_0.method_32(), buffer, new sprᤘ((double)imageData.CropFromLeft, (double)imageData.CropFromRight, (double)imageData.CropFromTop, (double)imageData.CropFromBottom), smethod_6(imageData)); smethod_5(A_1, sprἣ); r➓.ᜁ(sprἣ); A_0.ᜁ(r➓); if (A_3 != null) { A_3.method_1(buffer, sprἣ.ᜂ()); } } }
private void method_2() { Class826 stroke = this.shapeObject_0.Stroke; if (!stroke.method_0()) { this.spr⚪_0 = null; } else { switch (stroke.method_12()) { case LineFillType.Pattern: { spr᧢ r᧢2 = Class1075.smethod_2(stroke.method_36(), null, sprឦ.ᜀ(stroke.method_6()), sprឦ.ᜀ(stroke.method_10())); this.spr⚪_0 = new spr⚪(r᧢2); break; } case LineFillType.Texture: case LineFillType.Picture: { spr⍂ r⍂ = new spr⍂(stroke.method_36()); this.spr⚪_0 = new spr⚪(r⍂); break; } default: { spr᧢ r᧢ = Class1075.smethod_1(sprⓚ.ᜀ(stroke.method_6()), stroke.method_34()); this.spr⚪_0 = new spr⚪(r᧢); break; } } this.spr⚪_0.ᜀ(Class1022.smethod_2(stroke.method_16())); this.spr⚪_0.ᜂ(this.method_27()); this.method_3(stroke); this.method_4(stroke); LineCap cap = Class1022.smethod_3(stroke.method_18()); this.spr⚪_0.ᜀ(Class1022.smethod_4(stroke.method_18())); this.spr⚪_0.ᜀ(cap); this.spr⚪_0.ᜁ(cap); } }
private static PointF[] smethod_1(Class724 A_0, spr➓ A_1) { RectangleF ef; if (A_0.method_3().ShapeType == ShapeType.Group) { ef = smethod_2(A_1); PointF[] tfArray = spr.ᜀ(smethod_3(A_0)); smethod_4(A_0, tfArray); ef = (ef == RectangleF.Empty) ? smethod_3(A_0) : spr.ᜀ(ef, spr.ᜁ(tfArray)); return(spr.ᜀ(ef)); } ef = smethod_3(A_0); ShapeObject obj2 = (ShapeObject)A_0.method_3(); float left = ef.Left; float top = ef.Top; float right = ef.Right; float bottom = ef.Bottom; float num5 = 0f; float num6 = 0f; float num7 = 0f; float num8 = 0f; Class826 stroke = obj2.Stroke; bool flag = Class1022.smethod_1(obj2); if (stroke.method_0()) { num5 = (float)stroke.method_2(); num6 = num5; num7 = num5; num8 = num5; } float num9 = flag ? 1f : 0.5f; left -= num7 * num9; top -= num5 * num9; right += num8 * num9; bottom += num6 * num9; return(new PointF[] { new PointF(left, top), new PointF(right, top), new PointF(right, bottom), new PointF(left, bottom) }); }