Solved

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

Posted on 2008-10-20
1
485 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Not showing page correctly 3 40
What do you call this line of code in this .NET Core page? 4 34
Not seen Link button 5 37
MVC DDL Json Not Binding to Model 2 12
Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now