Sorry, you need more files from the GdiPlusX zip, not only Source\System.vcx Source\System.vct
They are all in the Source folder: Drawing.vct Drawing.vcx Drawing2D.vct Drawing2d.vcx Imaging.vct Imaging.vcx System.vct System.vcx Text.vct Text.vcx Gianni ----- Original Message ----- From: Gianni Turri <[EMAIL PROTECTED]> To: [email protected] Sent: Fri, 01 Jun 2007 00:38:23 +0200 Subject: Re: Screencapture.prg -- converting the clipboard image to a file on disk? >Hi Michael, > >few lines of code to do the full job using the GdiPlusX library! > >http://www.codeplex.com/VFPX/Release/ProjectReleases.aspx?ReleaseId=1711 > >Download the zip at the link, extract only >Source\System.vcx >Source\System.vct > >Then run the following code to capture the screen in a file: > ><code> > >local loGdiPlusX >loGdiPlusX = newobject("xfcSystem", "system.vcx") > >local loBmp as xfcBitmap >loBmp = loGdiPlusX.Drawing.Bitmap.FromScreen() > >loBmp.Save("ScreenCapture.jpg", loGdiPlusX.Drawing.Imaging.ImageFormat.Jpeg) > ></code> > >you can also use this syntax to capture the current form >loBmp = loGdiPlusX.Drawing.Bitmap.FromScreen(Thisform) > >or this syntax to capture the vfp screen area >loBmp = loGdiPlusX.Drawing.Bitmap.FromScreen(_screen) > >Then when less "under pressure" take a look at the full contenent of the >GdiPlusX zip, >it contains a project full of runnable samples. > >Gianni > >----- Original Message ----- >From: MB Software Solutions <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Sent: Thu, 31 May 2007 14:19:35 -0400 >Subject: Re: Screencapture.prg -- converting the clipboard image to a file on >disk? > >>Matthew Jarvis wrote: >>> Sorry, but what I have doesn't do what you are looking for... >>> >> >>Well, I suppose I could run Stuart's code, have it launch MSPaint with a >>RUN command (that should be on every system, right?), save that to a >>file with some purposeful or perhaps random name in a temp folder, then >>pop up a form for the user to enter comments into an editbox, then usign >>blat to email both the comments and file back to me. >> >>Whew! Now...to put that plan into action. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

