private void DrawTileDialog_Shown(object sender, EventArgs e) { tileGfx = TilePicture.CreateGraphics(); tileGfx.SetOptions(); using (System.IO.MemoryStream ms = new System.IO.MemoryStream(Properties.Resources.pencilcur)) pencilcur = new Cursor(ms); using (System.IO.MemoryStream ms = new System.IO.MemoryStream(Properties.Resources.fillcur)) fillcur = new Cursor(ms); TilePicture.Cursor = pencilcur; TilePicture.Size = new Size(tile.Width * (int)numericUpDown1.Value, tile.Height * (int)numericUpDown1.Value); }
private void Form1_Load(object sender, EventArgs e) { string[] args = Environment.GetCommandLineArgs(); if (args.Length == 1) { files = new List <FontItem>(); filename = null; } else { LoadFile(args[1]); } tileGfx = TilePicture.CreateGraphics(); tileGfx.SetOptions(); TilePicture.Cursor = new Cursor(new System.IO.MemoryStream(Properties.Resources.pencilcur)); TilePicture.Size = new Size(24 * (int)trackBar1.Value, 24 * (int)trackBar1.Value); }
private void TilePicture_Resize(object sender, EventArgs e) { tileGfx = TilePicture.CreateGraphics(); tileGfx.SetOptions(); }