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 static Color smethod_2(Class678 A_0) { TextureStyle style = A_0.method_13(); switch (style) { case TextureStyle.TextureNone: case TextureStyle.TextureNil: if (!A_0.method_7().IsEmpty&& (smethod_4(A_0.method_7()) <= 0.238f)) { return(Color.White); } return(Color.Black); } if (!Class955.smethod_13(style)) { float num = (float)Class955.smethod_11(style); float num2 = smethod_4(smethod_1(A_0.method_11())) * num; float num3 = 1f - num; float num4 = smethod_4(smethod_0(A_0.method_7())) * num3; float num5 = num2 + num4; if (num5 <= 0.238f) { return(Color.White); } } return(Color.Black); }
private static GraphicsPath smethod_3(WordArt A_0, float A_1, out SizeF A_2) { if (A_1 <= 0f) { A_2 = new SizeF(0f, 0f); return(new GraphicsPath()); } int style = smethod_4(A_0.Bold, A_0.Italic, A_0.StrikeThrough, A_0.Underline); using (Font font = sprḊ.ᜀ(A_0.FontFamily, A_1, (FontStyle)style)) { style = (int)font.Style; StringFormat format = new StringFormat(StringFormat.GenericTypographic) { LineAlignment = StringAlignment.Far }; GraphicsPath path = new GraphicsPath(); string s = Class955.smethod_7(A_0.Text); path.AddString(s, font.FontFamily, style, A_1, new PointF(0f, A_1), format); A_2 = smethod_6(s, font, format); return(path); } }
internal static Class16 smethod_1(BinaryReader A_0, Class16 A_1) { Color empty; if (A_1 == null) { A_1 = new Class16(); } int num = A_0.ReadInt32(); if (num == -16777216) { empty = Color.Empty; } else { empty = Class624.smethod_7(num); } A_1.method_61(empty); num = A_0.ReadInt32(); if (num == -16777216) { empty = Color.Empty; } else { empty = Class624.smethod_7(num); } A_1.method_57(empty); A_1.method_63(Class955.smethod_12((TextureStyle)A_0.ReadUInt16())); if (A_1.method_62() == TextureStyle.TextureNil) { A_1.method_57(Color.Empty); A_1.method_61(Color.Empty); } return(A_1); }
string object.ToString() { int num = 14; StringBuilder builder = new StringBuilder(); builder.Append(BookmarkStart.b("ᐳ縵愷樹礻氽ిୁ桇", 14)); if (Class567.smethod_16(this.method_0())) { builder.AppendFormat(BookmarkStart.b("伳ص䔷ᨹ", num), Class955.smethod_5(this.method_0())); } if (Class567.smethod_16(this.method_2())) { builder.AppendFormat(BookmarkStart.b("栳娵ᠷ䄹䌽怿", num), Class955.smethod_3(this.method_2())); } if (Class567.smethod_16(this.method_4())) { builder.AppendFormat(BookmarkStart.b("栳夵ᠷ䄹䌽怿", num), Class955.smethod_3(this.method_4())); } if (Class567.smethod_16(this.method_6())) { builder.AppendFormat(BookmarkStart.b("栳䈵ᠷ䄹䌽怿", num), Class955.smethod_3(this.method_6())); } return(builder.ToString()); }
private unsafe void method_1() { this.stream_0.Position = this.stream_0.Length; this.class954_0.FileSize = (ulong)(this.stream_0.Length + 1024L); this.class954_0.Header2Offset = (ulong)(this.stream_0.Position - 1152L); this.class954_0.SectionsMapCrcSeed = this.class995_0.method_2((uint)this.class954_0.SectionsMapCrcSeed); this.class954_0.PagesMapCrcSeed = this.class995_0.method_2((uint)this.class954_0.PagesMapCrcSeed); Class888 class888 = new Class888(); class888.method_0(this.class954_0.CrcSeed, this.class995_0); this.class954_0.CrcSeedEncoded = this.class995_0.method_2((uint)(this.class954_0.CrcSeed & (ulong)ushort.MaxValue)); MemoryStream memoryStream1 = new MemoryStream(); Class889 byteStream = Class889.Create((Stream)memoryStream1, this.dxfVersion_0, this.encoding_0); this.method_3(byteStream); ulong num1 = Class656.class656_0.method_0(memoryStream1.GetBuffer(), 0U, (uint)memoryStream1.Length, Class656.smethod_1(0UL, (uint)memoryStream1.Length)); memoryStream1.Position = 264L; byteStream.vmethod_15(num1); Class955 class955 = new Class955(); MemoryStream memoryStream2 = new MemoryStream(); class955.method_1(memoryStream1.GetBuffer(), 0, (int)memoryStream1.Length, (Stream)memoryStream2); if (memoryStream2.Length >= memoryStream1.Length) { memoryStream2 = memoryStream1; } ulong num2 = Class656.class656_0.method_0(memoryStream2.GetBuffer(), 0U, (uint)memoryStream2.Length, Class656.smethod_1(0UL, (uint)memoryStream2.Length)); MemoryStream memoryStream3 = new MemoryStream(12); Class889 class889_1 = Class889.Create((Stream)memoryStream3, this.dxfVersion_0, this.encoding_0); ulong control = this.class995_0.method_1(); class889_1.vmethod_15(control); class889_1.vmethod_15(Class888.smethod_0(control, control)); ulong num3 = Class656.class656_0.method_0(memoryStream3.GetBuffer(), 0U, (uint)memoryStream3.Length, Class656.smethod_0(0UL, (uint)memoryStream3.Length)); MemoryStream memoryStream4 = new MemoryStream(1024); Class889 class889_2 = Class889.Create((Stream)memoryStream4, this.dxfVersion_0, this.encoding_0); class889_2.vmethod_15(num3); class889_2.vmethod_15(control); class889_2.vmethod_15(num2); if (memoryStream2.Length < 272L) { class889_2.vmethod_13(memoryStream2.Length); } else { if (memoryStream2.Length != 272L) { throw new Exception(); } class889_2.vmethod_13(-272L); } memoryStream4.Write(memoryStream2.GetBuffer(), 0, (int)memoryStream2.Length); uint num4 = Class746.class746_0.K * 3U; uint length = (uint)class889_2.Stream.Length; uint num5 = (uint)((ulong)(uint)((int)length + 8 - 1) & 18446744073709551608UL); uint paddingSize1 = num5 - length; this.method_25((Stream)memoryStream4, paddingSize1); uint num6 = num4 / num5; for (int index = 1; (long)index < (long)num6; ++index) { memoryStream4.Write(memoryStream4.GetBuffer(), 0, (int)num5); } uint paddingSize2 = num4 - (uint)memoryStream4.Length; this.method_25((Stream)memoryStream4, paddingSize2); byte[] buffer = new byte[1024]; fixed(byte *source = memoryStream4.GetBuffer()) fixed(byte *destination = buffer) { this.method_28(destination, source, (int)num4, Class746.class746_0); this.method_24(destination + 765, 259U); } MemoryStream memoryStream5 = new MemoryStream(buffer, true); memoryStream5.Position = memoryStream5.Length - 40L; class888.Write((Stream)memoryStream5); if (memoryStream5.Length != 1024L) { throw new Exception(); } this.stream_0.Write(buffer, 0, buffer.Length); this.stream_0.Position = 128L; this.stream_0.Write(buffer, 0, buffer.Length); }
private void method_13(ShapeObject A_0) { int num = 0; if (!this.class423_0.method_65()) { this.class423_0.method_39(FieldType.FieldIncludePicture, this.method_21()); string str = string.Format(BookmarkStart.b("إ愧搩漫戭支瘱焳昵焷礹栻欽ሿ݁摃㵅硇㝉汋ቍ穏牑ᥓፕᵙᥛᡝ⽟ち⥣❥㱧䩩", num), Class955.smethod_5(A_0.ImageData.SourceFullName)); if (A_0.ImageData.IsLink && !A_0.HasImageBytes) { str = str + BookmarkStart.b("稥䰧", num); } this.class423_0.method_37(str, this.method_21()); this.class423_0.method_44(this.method_21()); } this.method_16(A_0); }
internal static string smethod_0(Class677 A_0) { int num = 15; StringBuilder builder = new StringBuilder(); builder.AppendFormat(BookmarkStart.b("ᔴ笶瀸町瘼Ἶ㩀獂㡄杆㉈穊が潎⩐慒⡔睖", 15), A_0.method_5(), Class955.smethod_5(A_0.method_8()), Class955.smethod_5(A_0.method_10())); if (A_0.method_12()) { builder.Append(BookmarkStart.b("椴嘶ᤸ", num)); } builder.AppendFormat(BookmarkStart.b("椴儶ᤸ䀺഼䈾慀", num), A_0.method_28()); builder.Append(smethod_2(A_0.method_26())); return(builder.ToString()); }