well i check all the web, i still do not know how to save it as a jpg and if possible, load and edit a picture from jpg
here is a simple code that i done for drawing......
namespace @try
{
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 :(