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.Drawing.Imaging;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10.  
  11. using System.Runtime.InteropServices;
  12.  
  13. namespace eee
  14. {
  15. public partial class Form1 : Form
  16. {
  17. [DllImport("dll_pack.dll")]
  18. static extern IntPtr test();
  19. public Form1()
  20. {
  21. InitializeComponent();
  22. }
  23.  
  24. private void Form1_Load(object sender, EventArgs e)
  25. {
  26. pictureBox0.SizeMode = PictureBoxSizeMode.Zoom;
  27. pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
  28. pictureBox2.SizeMode = PictureBoxSizeMode.Zoom;
  29. pictureBox3.SizeMode = PictureBoxSizeMode.Zoom;
  30. pictureBox4.SizeMode = PictureBoxSizeMode.Zoom;
  31.  
  32. //Bitmap b = new Bitmap(366, 275, PixelFormat.Format8bppIndexed);
  33. //BitmapData d = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadOnly, PixelFormat.Format8bppIndexed);
  34. //test();
  35. //b.UnlockBits(d);
  36. Bitmap a = new Bitmap(960, 1280, 2 * 960, PixelFormat.Format8bppIndexed, test());
  37. pictureBox0.Image = a;
  38. }
  39.  
  40. }
  41. }
  42.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty