Skip to content

Gdi+ in windows service

prabhat khadka

Asked Nov 12, 2007, 9:13 PM EST2 answers
Share
LinkedInX
how to apply gdi+ in WindowsService. Is there any alternative way to use graphics in WindowsService.Can anyone help me with this?

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    You have to be more specific about what exactly are you trying to do. As such, a service does not have any user interface and there is no reason to put GDI+ code in it. If you are trying to build some graphics or shapes at runtime using a Windows Service, you will have to create images on the fly and add graphics objects and save them.
    0
  • 0
    Well thanx for the reply. I have written a code on windows service using c#.net.It takes the screenshot every 5seconds.Its works well in my computer and saves the screenshot in the given path.But when I give the path to save the .jpeg file taken as a screenshot within the network,its shows the exception "A generic error occurred in GDI+." Can there be a solution for this exception?
    0