PDA

View Full Version : Programming Problems: Get Taskbar image and saving img to jpg, etc


XploD.GER
29th July 2007, 01:17 PM
Hi all,

I am trying to programm a tool which can get screenshots of the whole PDA screen. With GetDesktopWindow() from coredll.dll I get just the desktop without the upper Taskbar. How can I get the handle to the taskbar, or a handle to the complete screen?

When I try to save an Image with an extension other than bmp via:

Image screenie = Screeniefunction();
screenie.Save(Filename, System.Drawing.Imaging.ImageFormat.Jpeg);

I'll get a "NotsupportedException". What do I have to do to save an image in formats like png, jpg or gif?

Thanks,
Dirk