private static spr⇼ smethod_7(DocPicture A_0) { ImageColorModeCore core = 0; if (A_0.BiLevel) { core = 2; } else if (A_0.GrayScale) { core = 1; } float num = (float)Class1077.smethod_0((double)Class969.smethod_69((int)A_0.GetShapeAttribute(0x109))); return(new spr⇼(core, num, (float)Class1077.smethod_2((double)Class969.smethod_69((int)A_0.GetShapeAttribute(0x108))))); }
internal WatermarkBase method_61() { TextWatermark watermark = new TextWatermark(base.m_doc); if (!base.ShapePr.method_6(0x182)) { watermark.Semitransparent = false; } watermark.Text = (string)base.ShapePr.method_32(0xc0); watermark.FontName = (string)base.ShapePr.method_32(0xc5); if (base.ShapePr.method_6(0xc3)) { watermark.FontSize = Class969.smethod_69((int)base.ShapePr.method_32(0xc3)); } if (base.ShapePr.method_6(0x181)) { watermark.Color = (Color)base.ShapePr.method_32(0x181); } else { watermark.Color = Color.Empty; } if (base.ShapePr.method_6(0x1023)) { watermark.ShapeWidthInPixels = (int)(base.Width * 20.0); } if (base.ShapePr.method_6(0x1024)) { watermark.ShapeHeightInPixels = (int)(base.Height * 20.0); } if (!base.ShapePr.method_6(4)) { watermark.Layout = WatermarkLayout.Horizontal; } return(watermark); }