Connecting Tech Pros Worldwide Forums | Help | Site Map

Subject Image rendering in a .NET Web Service

=?Utf-8?B?Q3JhaWcgRGFuaWVs?=
Guest
 
Posts: n/a
#1: Nov 14 '08
I have a design dilemma here and I’m looking for suggestions. My
requirements pretty much dictate I have to build a Windows Service (program
needs to be running all the time), and I’ve chosen a Web Service specifically
with both a Windows Forms or WPF client and also a Silverlight web client.

For the sake of brevity, suffice to say that I need to render images within
this service process to be consumed by the clients. The problem is, if you
use System.Drawing or System.Drawing.Imaging (that’s where Bitmap and Image
are), you end up pulling GDI+ into the service process. MSDN documentation
makes it pretty clear that Microsoft does not want me doing this:
http://msdn.microsoft.com/en-us/libr...m.drawing.aspx

I made a little .NET test service which uses a third-party product to render
a chart over and over and writes it to a PNG file and that seems to work
fine. Process Explorer confirms GDI+ is indeed loaded in the process. My
question is this: Will this very basic use of GDI+ in a Windows Service
cause any real problems? Any thoughts on a way out of this?

Thanks for any input.


Closed Thread