>Hi
>
>I am running a signiture capture device called Epad Ink which captures a customer signiture. It does not link into vpf or does not generate a bitmap itself. It can link into VB and work and excell. I was wondering if there was a method of capturing a section of the of or all of if and generating an image from this ?
>
>Thanks
>brian O Donovan
Using GdiPlusX is very simple to capture images, with the advantage that you can do any manipulation if needed, like resizing, saving in any format, reducing quality, saving in Monochrome to save space, etc...
Requires VFP9 and the GdiPlusX library, that can be downloaded from here:
https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=VFPX&ReleaseId=8606
DO SYSTEM.APP
WITH _Screen.System.Drawing
LOCAL loBmp as xfcBitmap
loBmp = .Bitmap.FromScreen(Thisform)
loBmp.Save("c:\MyCapturedForm.png", .Imaging.ImageFormat.Png)
loBmp.ToPrinter()
ENDWITH
You can capture anything in a form, like a command button or a container too:
loBmp = .Bitmap.FromScreen(Thisform.Container1)
If you want to use the HWND:
loBmp = .Bitmap.FromScreen(Thisform.HWND)
or
loBmp = .Bitmap.FromScreen(Thisform.MyOLEControl.HWND)
Hope this helps
Cesar