Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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

12 Experts available now in Live!

Get 1:1 Help Now