fork download
  1. using System;
  2.  
  3. using System.Collections.Generic;
  4.  
  5. using System.ComponentModel;
  6.  
  7. using System.Data;
  8.  
  9. using System.Drawing;
  10.  
  11. using System.Linq;
  12.  
  13. using System.Text;
  14.  
  15. using System.Windows.Forms;
  16.  
  17.  
  18.  
  19. namespace test06
  20.  
  21. {
  22.  
  23. public partial class Form1 : Form
  24.  
  25. {
  26.  
  27. public Form1()
  28.  
  29. {
  30.  
  31. InitializeComponent();
  32.  
  33. }
  34.  
  35.  
  36.  
  37. private void button1_Click(object sender, EventArgs e)
  38.  
  39. {
  40.  
  41. Bitmap bitmap_out = new Bitmap(6376, 10805, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
  42.  
  43. Bitmap bitmap_out2 = new Bitmap(6376, 10805, System.Drawing.Imaging.PixelFormat.Format32bppArgb); //※2
  44.  
  45. Graphics graphics = Graphics.FromImage(bitmap_out);
  46.  
  47.  
  48.  
  49. for (int i = 0; i < bitmap_out.Width; i += 50)
  50.  
  51. {
  52.  
  53. graphics.DrawLine(Pens.Black, i, 0, i, bitmap_out.Height);
  54.  
  55. }
  56.  
  57. for (int i = 0; i < bitmap_out.Height; i += 50)
  58.  
  59. {
  60.  
  61. graphics.DrawLine(Pens.Black, 0, i, bitmap_out.Width, i);
  62.  
  63. }
  64.  
  65. graphics.Dispose();
  66.  
  67.  
  68.  
  69. if (this.pictureBox1.Image != null)
  70.  
  71. {
  72.  
  73. this.pictureBox1.Image.Dispose();
  74.  
  75. }
  76.  
  77. this.pictureBox1.Image = null;
  78.  
  79. //this.pictureBox1.Image = new Bitmap(bitmap_out);
  80.  
  81. //bitmap_out.Dispose();
  82.  
  83. this.pictureBox1.Image = bitmap_out;
  84.  
  85. }
  86.  
  87. }
  88.  
  89. }
  90.  
  91.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(7,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(9,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(15,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty