fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.Drawing.Drawing2D;
  10.  
  11. namespace WindowsFormsApplication1
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. }
  19.  
  20. private void Form1_Load(object sender, EventArgs e)
  21. {
  22.  
  23. }
  24. Brush mybrush = new SolidBrush(Color.FromArgb(127, 255, 255, 255));
  25. private void label1_Paint(object sender, PaintEventArgs e)
  26. {
  27. Graphics g = e.Graphics;
  28. g.FillRectangle(mybrush,e.ClipRectangle);
  29. //オマケ
  30. //g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
  31. //LinearGradientBrush lgb = new LinearGradientBrush(e.ClipRectangle,Color.Red,Color.Blue,0.0f);
  32. //g.FillRectangle(lgb, e.ClipRectangle);
  33. }
  34. }
  35. }
  36.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty