All,
Has anyone devised a way to capture a signature and save it as a graphic image?
Thanks,
Randal Ferguson
All,
Has anyone devised a way to capture a signature and save it as a graphic image?
Thanks,
Randal Ferguson
Randal,
We have not build a sample yet, but you can use MouseMove events to SetPixel( nRow, nCol ) the touched pixels and finally create a bitmap to save from the hDC.
Hello Antonio
In FWPPC oWnd:onMouseMouve don't work , what I cann use for capture
mousemove ?
Regards Maurizio
Maurizio,
There is a new FWPPC build already available, that supports Class TWindow DATA bMMoved.
oWnd:bMMoved = { | nRow, nCol, nFlags | ... }
Thank Antonio
Now I try to save the window in a BMP with SaveToBmp but in FWPPC
don't exist
I try
DEFAULT cFile := CurDir() + "\Test.Bmp"
hBmp := WndBitmap( oWnd:hWnd )
hDib := DibFromBitmap( hBmp )
DibWrite( cFile, hDib )
GloBalFree( hDib )
DeleteObject( hBmp )
But I have "error 6"
Any Idea
Regards MAurizio
Maurizio,
There is a problem: Windows Mobile does not support GetDIBits() which it is needed to turn a BMP into a DIB file.
We have implemented a replacement but it is not working yet. We expect to find a solution for it.
Hello Antonio I have now found the solution .
Now I have to set the quality of the signature .
I found an old messagge send by you regarding this :
" You may try to fine tune the mouse speed using SystemParametersInf()
and the SPI_SETMOUSE flag. Also check mouse_event()"
How it is possible to do this ?
Regards Maurizio
Maurizio,
We have never tried it ourselves. You may need to do dome tests.
Maurizio,
Would you mind sharing your solution? Also, is there anyway to print the signature (or bmp)?
Thanks,
Randal Ferguson
Sure when I have finish it ,
Antonio,
is it possble to have ::bMMoved in the DIALOG TO
Regards Maurizio
Maurizio,
As Class TDialog inherits from Class TWindow, it already has bMMoved support.
#include "FWCE.ch"
function Main()
DEFINE WINDOW oWnd TITLE "SaveToBmp"
@ 9, 2 BUTTON "Save To Bmp" ;
SIZE 210, 30 ;
ACTION ( oWnd:SaveToBmp( CurDir() + "\test.bmp" ), MsgInfo( "done!" ) )
ACTIVATE WINDOW oWnd
return nil