Some1help me.... so how to save the pictures i drew to jpg if possible load and edit a jpg file.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace @try
{
public partial class Form1 : Form
{
private Graphics picture;
private Color paint;
public Form1()
{
InitializeComponent();
paint = Color.Green;
}
private void button1_Click(object sender, EventArgs e)
{
}
private void panel1_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
picture.FillEllipse(new SolidBrush(paint), e.X, e.Y, 50, 50);
}
else if (e.Button == MouseButtons.Right)
{
picture.FillEllipse(new SolidBrush(Color.White), e.X, e.Y, 50, 50);
}
}
private void panel1_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
picture.FillEllipse(new SolidBrush(paint), e.X, e.Y, 50, 50);
}
else if (e.Button == MouseButtons.Right)
{
picture.FillEllipse(new SolidBrush(Color.White), e.X, e.Y, 50, 50);
}
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
picture = panel1.CreateGraphics();
}
}
}
So anyone can really please enlighten me? and not give me a damn diy code