Hi
I am drawing a rectangle using OnmouseClick(vector image)..how can i convert to meta file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
protected override void OnMouseClick(MouseEventArgs e)
{
Graphics g = this.CreateGraphics();
g.DrawRectangle(new Pen(Color.Blue), new Rectangle(e.X, e.Y, 20, 40)); // How can i convert this vector in to a \\ meta file
base.OnMouseClick(e);
}
protected override void OnPaint(PaintEventArgs e)
{
//how to display the meatfile here
base.OnPaint(e);
}
}
}
Can anyone please explain this with source code.
Regards,
ALGATES