Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / September 2003

Tip: Looking for answers? Try searching our database.

How to record a EMF+ in GDI+

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ChristosX - 28 Sep 2003 00:03 GMT
I don't find examples about creating a EMF+ metafile in on-
line help of VB.NET.

I want to draw an ellipse and draw a string inside it.
Then record these instructions to a metafile. How i can do
it? The on-line help is not clear on this topic.

Can you send me an example? Or, where i can find examples
about this?

Thank you,
ChristosX
John Hornick [MSFT] - 28 Sep 2003 03:19 GMT
Hi,

> I don't find examples about creating a EMF+ metafile in on-
> line help of VB.NET.
[quoted text clipped - 5 lines]
> Can you send me an example? Or, where i can find examples
> about this?

Create a Metafile using one of the constructors which accepts an
HDC as a parameter (IntPtr). Then use Graphics.FromImage() to get
a Graphics on which to draw. Dispose() the Graphics after you're
done drawing.

Thanks,
- John
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Visit http://www.microsoft.com/security for current information on security.
ChristosX - 28 Sep 2003 22:28 GMT
Thanks, it worked.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.