// Token: 0x06000293 RID: 659 RVA: 0x00007BC0 File Offset: 0x00005DC0 protected virtual void OnPaint(PaintEventArgs e) { this.method_1(); Bitmap image_ = GControl13.smethod_9(GControl13.smethod_7(this), GControl13.smethod_8(this)); Graphics graphics = GControl13.smethod_10(image_); this.int_0 = GControl13.smethod_7(this); this.int_1 = GControl13.smethod_8(this); GraphicsPath graphicsPath_ = GControl13.smethod_11(); bool[] array = this.method_0(); GraphicsPath graphicsPath = GClass6.smethod_1(0f, 0f, (float)this.int_0, (float)this.int_1, 0.3, !array[2] && !array[1], !array[1] && !array[0], !array[3] && !array[0], !array[3] && !array[2]); Rectangle rectangle = new Rectangle(0, 0, this.int_0, this.int_1); Graphics graphics_ = graphics; GControl13.smethod_12(graphics_, SmoothingMode.HighQuality); GControl13.smethod_13(graphics_, PixelOffsetMode.HighQuality); GControl13.smethod_14(graphics_, TextRenderingHint.ClearTypeGridFit); GControl13.smethod_16(graphics_, GControl13.smethod_15(this)); switch (this.genum5_0) { case GEnum5.None: if (!this.Boolean_0) { GControl13.smethod_22(graphics_, GControl13.smethod_17(this.color_0), rectangle); GControl13.smethod_21(graphics_, GControl13.smethod_19(this), GControl13.smethod_20(this), GControl13.smethod_17(this.color_1), rectangle, GClass6.stringFormat_1); } else { graphicsPath_ = graphicsPath; GControl13.smethod_18(graphics_, GControl13.smethod_17(this.color_0), graphicsPath_); GControl13.smethod_21(graphics_, GControl13.smethod_19(this), GControl13.smethod_20(this), GControl13.smethod_17(this.color_1), rectangle, GClass6.stringFormat_1); } break; case GEnum5.Over: if (this.Boolean_0) { graphicsPath_ = graphicsPath; GControl13.smethod_18(graphics_, GControl13.smethod_17(this.color_0), graphicsPath_); GControl13.smethod_18(graphics_, GControl13.smethod_17(Color.FromArgb(20, Color.White)), graphicsPath_); GControl13.smethod_21(graphics_, GControl13.smethod_19(this), GControl13.smethod_20(this), GControl13.smethod_17(this.color_1), rectangle, GClass6.stringFormat_1); } else { GControl13.smethod_22(graphics_, GControl13.smethod_17(this.color_0), rectangle); GControl13.smethod_22(graphics_, GControl13.smethod_17(Color.FromArgb(20, Color.White)), rectangle); GControl13.smethod_21(graphics_, GControl13.smethod_19(this), GControl13.smethod_20(this), GControl13.smethod_17(this.color_1), rectangle, GClass6.stringFormat_1); } break; case GEnum5.Down: if (this.Boolean_0) { graphicsPath_ = graphicsPath; GControl13.smethod_18(graphics_, GControl13.smethod_17(this.color_0), graphicsPath_); GControl13.smethod_18(graphics_, GControl13.smethod_17(Color.FromArgb(20, Color.Black)), graphicsPath_); GControl13.smethod_21(graphics_, GControl13.smethod_19(this), GControl13.smethod_20(this), GControl13.smethod_17(this.color_1), rectangle, GClass6.stringFormat_1); } else { GControl13.smethod_22(graphics_, GControl13.smethod_17(this.color_0), rectangle); GControl13.smethod_22(graphics_, GControl13.smethod_17(Color.FromArgb(20, Color.Black)), rectangle); GControl13.smethod_21(graphics_, GControl13.smethod_19(this), GControl13.smethod_20(this), GControl13.smethod_17(this.color_1), rectangle, GClass6.stringFormat_1); } break; } base.OnPaint(e); GControl13.smethod_23(graphics); GControl13.smethod_25(GControl13.smethod_24(e), InterpolationMode.HighQualityBicubic); GControl13.smethod_26(GControl13.smethod_24(e), image_, 0, 0); GControl13.smethod_27(image_); }
// Token: 0x06000153 RID: 339 RVA: 0x002608C8 File Offset: 0x0025EAC8 protected virtual void OnPaint(PaintEventArgs e) { this.method_1(); Bitmap bitmap = new Bitmap(base.Width, base.Height); Graphics graphics = Graphics.FromImage(bitmap); this.int_0 = base.Width; this.int_1 = base.Height; GraphicsPath path = new GraphicsPath(); bool[] array = this.method_0(); GraphicsPath graphicsPath = GClass6.smethod_1(0f, 0f, (float)this.int_0, (float)this.int_1, 0.3, !array[2] && !array[1], !array[1] && !array[0], !array[3] && !array[0], !array[3] && !array[2]); Rectangle rectangle = new Rectangle(0, 0, this.int_0, this.int_1); Graphics graphics2 = graphics; graphics2.SmoothingMode = SmoothingMode.HighQuality; graphics2.PixelOffsetMode = PixelOffsetMode.HighQuality; graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit; graphics2.Clear(this.BackColor); switch (this.genum5_0) { case GEnum5.None: if (!this.Boolean_0) { graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } else { path = graphicsPath; graphics2.FillPath(new SolidBrush(this.color_0), path); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } break; case GEnum5.Over: if (!this.Boolean_0) { graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle); graphics2.FillRectangle(new SolidBrush(Color.FromArgb(20, Color.White)), rectangle); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } else { path = graphicsPath; graphics2.FillPath(new SolidBrush(this.color_0), path); graphics2.FillPath(new SolidBrush(Color.FromArgb(20, Color.White)), path); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } break; case GEnum5.Down: if (!this.Boolean_0) { graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle); graphics2.FillRectangle(new SolidBrush(Color.FromArgb(20, Color.Black)), rectangle); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } else { path = graphicsPath; graphics2.FillPath(new SolidBrush(this.color_0), path); graphics2.FillPath(new SolidBrush(Color.FromArgb(20, Color.Black)), path); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } break; } base.OnPaint(e); graphics.Dispose(); e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; e.Graphics.DrawImageUnscaled(bitmap, 0, 0); bitmap.Dispose(); }