Solved

Creating In-Memory Device Context On .Net 2.0 GDI+

Posted on 2008-10-20
1
491 Views
Last Modified: 2013-12-17
I need help creating an in-memory GDI+ drawing canvas that is the Win32 equivalent of a device context with a defined width and height on which I can carry out a variety of drawing operations using GDI+ objects and methods.  The operations that I need to do include loading an image from file, drawing lines, writing text, etc. When this is completed, I need to be able to take the information from the in-memory canvas and write it out to a file or stream.

Can somebody point me in the right direction for how to go about doing this in .Net 2.0?
0
Comment
Question by:dshockey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 22766874
You should be able to use the System.Drawing.Bitmap and System.Drawing.Graphics classes to achieve what you need.

Proof-of-concept:

Using Bitmaps for Persistent Graphics in C#
http://www.techotopia.com/index.php/Using_Bitmaps_for_Persistent_Graphics_in_C_Sharp
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question