Marc, To build a magnifier simply use GetPixel( hDC, nXPos, nYPos ) --> nRGBColor to read the pixels and SetPixel( hDC, nXPos, nYPos, nRGBColor ) to paint them. If you read 1 pixel, then you could write four pixels for it. This way you magnify the image. There is a way to ...
... modificar el pixel tienes que cargarlo en un hDC, que no quiere decir que tengas que visualizarlo: local hOld := SelectObject( oWnd:hDC, hBitmap ) SetPixel( oWnd:hDC, ... ) Guardar el bitmap a disco nuevamente SelectObject( oWnd:hDC, hOld ) Si explicas un poco más lo que quieres hacer, podemos ...
I've had better luck using the LineTo function. Using SetPixel made the signature look very "dotted". Something like this sample works very nicely... #include "FWCE.ch" #include "DLL.ch" function Main() local oWnd, ...
... ) to save any window, dialog or control image as a BMP file. All is needed is a sample that uses bLClicked, bMMoved and bLButtonUp DATAs to SetPixel( oWnd:hDC, nRow, nCol, nRGB( 255, 255, 255 ) ) and paint the pixels signature as pressed and later on save it to disk.
Antonio, A while back I asked about capturing signatures on the handheld. You suggested it may be easy to do using mouse events and setpixel(). I put together a little program using FWH to see if I could make it work on the desktop. The problem is when dragging the mouse the pixels set are ...
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.
To capture a signature its not difficult. Just a empty window which detects mouse move events and call SetPixel() to do the drawing. Then it could be saved as a BMP file.
For a JPG file we need an additional routine, probably a google search may help.