Search found 24 matches: setpixel

Return to advanced search

Fafi,

You could use SetPixel( hDC, nRow, nCol ) to paint the pixels.
by Antonio Linares
Tue Mar 18, 2008 10:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Encode / Decode Datamatrix Barcode
Replies: 5
Views: 1113

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 ...
by Antonio Linares
Fri Aug 31, 2007 7:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Magnifyer
Replies: 12
Views: 2369

... 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 ...
by Antonio Linares
Thu Jan 04, 2007 5:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Pintar un pixel sobre un Bmp
Replies: 10
Views: 2845

... IF FILE(car) If( hBitmap != nil, ( DeleteObject( hBitmap ), hBitmap := nil ),) hBitmap := readbitmap( 0, car ) SetPixel( hBitmap, 0, 0, rgb(255,0,0) ) cim:=hBitmap ENDIF RETURN(cim)
by GUSPRE
Thu Jan 04, 2007 2:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Una Foto en listado twbrowse se muestra transparente
Replies: 7
Views: 2008

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, ...
by Bill Simmeth
Fri Dec 22, 2006 9:27 pm
 
Forum: FiveWin for Pocket PC
Topic: Signatures
Replies: 32
Views: 10737

... ) 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.
by Antonio Linares
Fri Dec 22, 2006 5:20 pm
 
Forum: FiveWin for Pocket PC
Topic: Signatures
Replies: 32
Views: 10737

Signatures

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 ...
by Randal
Fri May 19, 2006 5:49 pm
 
Forum: FiveWin for Pocket PC
Topic: Signatures
Replies: 2
Views: 1035

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.
by Antonio Linares
Tue Jan 03, 2006 2:45 pm
 
Forum: FiveWin for Pocket PC
Topic: Signatures
Replies: 11
Views: 3025

Paul,

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.
by Antonio Linares
Tue Oct 18, 2005 5:06 pm
 
Forum: FiveWin for Pocket PC
Topic: Signature Capture with FWPPC
Replies: 1
Views: 1406
Previous

Return to advanced search