Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 119,059 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,472 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



meta file using c#

 
Reply to this topicStart new topic

meta file using c#, convert vector graphics to meta file in c#

algates0027
post 1 Aug, 2008 - 10:49 PM
Post #1


New D.I.C Head

*
Joined: 1 Aug, 2008
Posts: 1





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
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/13/08 03:55PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month